ldaputil.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
  3. * Copyright (C) 2003-2009 Match Grun and the Claws Mail team
  4. *
  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 3 of the License, or
  8. * (at your option) any later version.
  9. *
  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.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. */
  19. /*
  20. * Some utility functions to access LDAP servers.
  21. */
  22. #ifndef __LDAPUTIL_H__
  23. #define __LDAPUTIL_H__
  24. #ifdef USE_LDAP
  25. #include <glib.h>
  26. #include <ldap.h>
  27. /* Function Prototypes */
  28. GList *ldaputil_read_basedn ( const gchar *host, const gint port,
  29. const gchar *bindDN, const gchar *bindPW,
  30. const gint tov, int ssl, int tls );
  31. gboolean ldaputil_test_connect ( const gchar *host, const gint port, int ssl, int tls, int secs);
  32. gboolean ldaputil_test_ldap_lib ( void );
  33. int claws_ldap_simple_bind_s( LDAP *ld, LDAP_CONST char *dn, LDAP_CONST char *passwd );
  34. #endif /* USE_LDAP */
  35. #endif /* __LDAPUTIL_H__ */
  36. /*
  37. * End of Source.
  38. */