Lines Matching defs:dbc
206 dlz_ldap_connect(ldap_instance_t *dbi, dbinstance_t *dbc) {
211 if (dbc->dbconn != NULL) {
212 ldap_unbind_s((LDAP *) dbc->dbconn);
213 dbc->dbconn = NULL;
219 dbc->dbconn = ldap_init(dbi->hosts, LDAP_PORT);
220 if (dbc->dbconn == NULL)
224 ldap_result = ldap_set_option((LDAP *) dbc->dbconn,
233 ldap_result = ldap_bind_s((LDAP *) dbc->dbconn, dbi->user,
245 if (dbc->dbconn != NULL) {
246 ldap_unbind_s((LDAP *) dbc->dbconn);
247 dbc->dbconn = NULL;
328 ldap_process_results(LDAP *dbc, LDAPMessage *msg, char ** attrs,
348 entry = ldap_first_entry(dbc, msg);
367 vals = ldap_get_values(dbc, entry, attrs[j]);
403 vals = ldap_get_values(dbc, entry, attribute);
534 entry = ldap_next_entry(dbc, entry);