ldapauth.h 779 B

123456789101112131415161718192021222324252627282930313233343536
  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, const char *filter, const char **attrs, int attrsonly, LDAPMessage **res);
  22. int ldapu_find_entire_tree(LDAP *ld, int scope, const char *filter, const char **attrs, int attrsonly, LDAPMessage ***res);
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif /* LDAPU_AUTH_H */