OpenVAS Libraries  6.0+beta5
ldap_connect_auth.h
Go to the documentation of this file.
1 /* OpenVAS Libraries
2  * $Id$
3  * Description: Header for LDAP-Connect Authentication module.
4  *
5  * Authors:
6  * Felix Wolfsteller <felix.wolfsteller@intevation.de>
7  *
8  * Copyright:
9  * Copyright (C) 2012 Greenbone Networks GmbH
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License version 2,
13  * or, at your option, any later version as published by the Free
14  * Software Foundation
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25 
26 #ifndef ENABLE_LDAP_AUTH
27 // Handle cases where openldap is not available.
28 #else
29 
30 #ifndef LDAP_CONNECT_AUTH_H
31 #define LDAP_CONNECT_AUTH_H
32 
33 #include <glib.h>
34 #include <ldap.h>
35 
36 int ldap_connect_authenticate (const gchar * username, const gchar * password,
37  /*ldap_auth_info_t */ void *info);
38 
39 #endif /* not LDAP_CONNECT_AUTH_H */
40 
41 #endif /* ENABLE_LDAP_AUTH */