db-ldap.h revision f1ddb98e6b639394ae205b305be1ddcfab102578
#ifndef __DB_LDAP_H
#define __DB_LDAP_H
#include <ldap.h>
struct ldap_connection;
struct ldap_request;
struct ldap_request *request,
LDAPMessage *res);
struct ldap_settings {
const char *hosts;
const char *uris;
const char *dn;
const char *dnpass;
int auth_bind;
const char *auth_bind_userdn;
const char *deref;
const char *scope;
const char *base;
unsigned int ldap_version;
const char *user_attrs;
const char *user_filter;
const char *pass_attrs;
const char *pass_filter;
const char *default_pass_scheme;
const char *user_global_uid;
const char *user_global_gid;
int ldap_deref, ldap_scope;
};
struct ldap_connection {
struct ldap_connection *next;
int refcount;
char *config_path;
struct ldap_settings set;
struct hash_table *requests;
char **pass_attr_names, **user_attr_names;
unsigned int connected:1;
};
struct ldap_request {
void *context;
const char *base;
const char *filter;
char **attributes; /* points to pass_attr_names / user_attr_names */
};
int scope);
const char *const default_attr_map[]);
const char *ldap_escape(const char *str);
#endif