2007-01-25 [paul] 2.7.1cvs2-stable
[claws.git] / src / ldaputil.h
blob37590bf11a1d0023e01dec7ee1fda07d6f6c84e9
1 /*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 2003-2007 Match Grun and the Claws Mail team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * Some utility functions to access LDAP servers.
24 #ifndef __LDAPUTIL_H__
25 #define __LDAPUTIL_H__
27 #ifdef USE_LDAP
29 #include <glib.h>
30 #include <ldap.h>
31 /* Function Prototypes */
32 GList *ldaputil_read_basedn ( const gchar *host, const gint port,
33 const gchar *bindDN, const gchar *bindPW,
34 const gint tov, int ssl, int tls );
35 gboolean ldaputil_test_connect ( const gchar *host, const gint port, int ssl, int tls);
36 gboolean ldaputil_test_ldap_lib ( void );
37 int claws_ldap_simple_bind_s( LDAP *ld, LDAP_CONST char *dn, LDAP_CONST char *passwd );
39 #endif /* USE_LDAP */
41 #endif /* __LDAPUTIL_H__ */
44 * End of Source.