38 |
38 |
39 static void ws_ldap_close(LDAP *ldap) { |
39 static void ws_ldap_close(LDAP *ldap) { |
40 #ifdef SOLARIS |
40 #ifdef SOLARIS |
41 ldap_unbind(ldap); |
41 ldap_unbind(ldap); |
42 #else |
42 #else |
43 ldap_unbind_ext_s(ld, NULL, NULL); |
43 ldap_unbind_ext_s(ldap, NULL, NULL); |
44 #endif |
44 #endif |
45 } |
45 } |
46 |
46 |
47 AuthDB* create_ldap_authdb(char *name, LDAPConfig *conf) { |
47 AuthDB* create_ldap_authdb(char *name, LDAPConfig *conf) { |
48 LDAPAuthDB *authdb = malloc(sizeof(LDAPAuthDB)); |
48 LDAPAuthDB *authdb = malloc(sizeof(LDAPAuthDB)); |