ldapauth.h 817 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. *
  6. * License: GPL (version 3 or any later version).
  7. * See LICENSE for details.
  8. * END COPYRIGHT BLOCK **/
  9. #ifdef HAVE_CONFIG_H
  10. # include <config.h>
  11. #endif
  12. #ifndef LDAPU_AUTH_H
  13. #define LDAPU_AUTH_H
  14. #include <ldap.h>
  15. #ifndef NSAPI_PUBLIC
  16. #define NSAPI_PUBLIC
  17. #endif
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. extern int ldapu_find (LDAP *ld, const char *base, int scope,
  22. const char *filter, const char **attrs,
  23. int attrsonly, LDAPMessage **res);
  24. int ldapu_find_entire_tree (LDAP *ld, int scope,
  25. const char *filter, const char **attrs,
  26. int attrsonly, LDAPMessage ***res);
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif /* LDAPU_AUTH_H */