src/server/daemon/ldap_resource.h

changeset 462
72848970541a
parent 461
9b20b8f3582b
child 464
0a29110b94ec
equal deleted inserted replaced
461:9b20b8f3582b 462:72848970541a
75 /* 75 /*
76 * ldap port 76 * ldap port
77 */ 77 */
78 int port; 78 int port;
79 79
80 /*
81 * admin binddn
82 */
83 char *binddn;
84
85 /*
86 * admin bindpw
87 */
88 char *bindpw;
89
90 /*
91 * bind every LDAP session to binddn
92 */
93 WSBool bind;
94
80 95
81 } LDAPResourcePool; 96 } LDAPResourcePool;
82 97
83 typedef struct LDAPResource { 98 typedef struct LDAPResource {
84 LDAP *ldap; 99 LDAP *ldap;
100 LDAPResourcePool *res_pool;
85 } LDAPResource; 101 } LDAPResource;
86 102
87 ResourceType* ldap_get_resource_type(void); 103 ResourceType* ldap_get_resource_type(void);
88 104
89 105
108 int ldap_resourcepool_prepare(LDAPResourcePool *pool, LDAPResource *res); 124 int ldap_resourcepool_prepare(LDAPResourcePool *pool, LDAPResource *res);
109 int ldap_resourcepool_finish(LDAPResourcePool *pool, LDAPResource *res); 125 int ldap_resourcepool_finish(LDAPResourcePool *pool, LDAPResource *res);
110 void * ldap_resourcepool_getresourcedata(LDAPResource *res); 126 void * ldap_resourcepool_getresourcedata(LDAPResource *res);
111 127
112 128
129 int ldap_resource_bind(LDAPResourcePool *respool, LDAP *ldap, struct berval **server_cred);
130
131
113 132
114 #ifdef __cplusplus 133 #ifdef __cplusplus
115 } 134 }
116 #endif 135 #endif
117 136

mercurial