src/server/daemon/ldap_auth.h

changeset 385
a1f4cb076d2f
parent 256
19259b6c5cf7
child 415
d938228c382e
equal deleted inserted replaced
210:21274e5950af 385:a1f4cb076d2f
31 31
32 #include "../public/auth.h" 32 #include "../public/auth.h"
33 #include <sys/types.h> 33 #include <sys/types.h>
34 #include <ldap.h> 34 #include <ldap.h>
35 #include <ucx/map.h> 35 #include <ucx/map.h>
36
37 #include "config.h"
36 38
37 #ifdef __cplusplus 39 #ifdef __cplusplus
38 extern "C" { 40 extern "C" {
39 #endif 41 #endif
40 42
88 size_t nmembers; 90 size_t nmembers;
89 time_t update; 91 time_t update;
90 LDAPGroup *next; 92 LDAPGroup *next;
91 }; 93 };
92 94
93 AuthDB* create_ldap_authdb(char *name, LDAPConfig *conf); 95 AuthDB* create_ldap_authdb(ServerConfiguration *cfg, const char *name, LDAPConfig *conf);
94 96
95 LDAP* get_ldap_session(LDAPAuthDB *authdb); 97 LDAP* get_ldap_session(LDAPAuthDB *authdb);
96 98
97 User* ldap_get_user(AuthDB *sb, char *username); 99 User* ldap_get_user(AuthDB *sb, char *username);
98 100

mercurial