authdb.h 650 B

1234567891011121314151617181920212223242526272829303132
  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. char *dbname;
  21. ACLDbType_t dbtype;
  22. void *dbinfo;
  23. } AuthdbInfo_t;
  24. extern int acl_num_databases();
  25. #endif /* AUTHDB_H */