authdb.h 638 B

123456789101112131415161718192021222324252627282930313233
  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 AUTHDB_H
  13. #define AUTHDB_H
  14. #include <base/plist.h>
  15. #include <libaccess/nserror.h>
  16. #include <libaccess/las.h>
  17. #define URL_PREFIX_LDAP "ldap"
  18. #define URL_PREFIX_LDAP_LEN 4
  19. typedef struct
  20. {
  21. char *dbname;
  22. ACLDbType_t dbtype;
  23. void *dbinfo;
  24. } AuthdbInfo_t;
  25. extern int acl_num_databases();
  26. #endif /* AUTHDB_H */