src/server/daemon/ldap_resource.h

changeset 462
72848970541a
parent 461
9b20b8f3582b
child 464
0a29110b94ec
--- a/src/server/daemon/ldap_resource.h	Sat Mar 11 11:56:55 2023 +0100
+++ b/src/server/daemon/ldap_resource.h	Sat Mar 11 12:37:48 2023 +0100
@@ -77,11 +77,27 @@
      */
     int port;
     
+    /*
+     * admin binddn
+     */
+    char *binddn;
+    
+    /*
+     * admin bindpw
+     */
+    char *bindpw;
+    
+    /*
+     * bind every LDAP session to binddn
+     */
+    WSBool bind;
+    
     
 } LDAPResourcePool;
 
 typedef struct LDAPResource {
     LDAP *ldap;
+    LDAPResourcePool *res_pool;
 } LDAPResource;
 
 ResourceType* ldap_get_resource_type(void);
@@ -110,6 +126,9 @@
 void * ldap_resourcepool_getresourcedata(LDAPResource *res);
 
 
+int ldap_resource_bind(LDAPResourcePool *respool, LDAP *ldap, struct berval **server_cred);
+
+
 
 #ifdef __cplusplus
 }

mercurial