db-ldap.h revision d5cebe7f98e63d4e2822863ef2faa4971e8b3a5d
5fe5ea74285e2fc0fbf7568c53f251aa894650fbTimo Sirainentypedef void db_search_callback_t(struct ldap_connection *conn,
a33b41b1dc19c692b1283049ec4de492fdadeb9aTimo Sirainen const char *dn;
8ad2759cf4073e3bf4fcb9222a86e2153ed31875Timo Sirainen struct hash_table *pass_attr_map, *user_attr_map;
8ad2759cf4073e3bf4fcb9222a86e2153ed31875Timo Sirainen char **attributes; /* points to pass_attr_names / user_attr_names */
8ad2759cf4073e3bf4fcb9222a86e2153ed31875Timo Sirainenvoid db_ldap_search(struct ldap_connection *conn, struct ldap_request *request,
8ad2759cf4073e3bf4fcb9222a86e2153ed31875Timo Sirainenvoid db_ldap_set_attrs(struct ldap_connection *conn, const char *attrlist,
8ad2759cf4073e3bf4fcb9222a86e2153ed31875Timo Sirainen char ***attr_names_r, struct hash_table *attr_map,
8ad2759cf4073e3bf4fcb9222a86e2153ed31875Timo Sirainen const char *const default_attr_map[]);
8ad2759cf4073e3bf4fcb9222a86e2153ed31875Timo Sirainenstruct ldap_connection *db_ldap_init(const char *config_path);
8ad2759cf4073e3bf4fcb9222a86e2153ed31875Timo Sirainenvoid db_ldap_unref(struct ldap_connection **conn);
8ad2759cf4073e3bf4fcb9222a86e2153ed31875Timo Sirainenbool db_ldap_connect(struct ldap_connection *conn);
8ad2759cf4073e3bf4fcb9222a86e2153ed31875Timo Sirainenconst char *ldap_get_error(struct ldap_connection *conn);