Lines Matching refs:ld
183 …hn_ldap_opt_err(log_error_st *errh, const char *file, unsigned long line, const char *fn, LDAP *ld) in mod_authn_ldap_opt_err() argument
186 ldap_get_option(ld, LDAP_OPT_ERROR_NUMBER, &err); in mod_authn_ldap_opt_err()
254 LDAP *ld; in mod_authn_ldap_host_init() local
257 ret = ldap_initialize(&ld, s->host); in mod_authn_ldap_host_init()
264 ret = ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION, &ret); in mod_authn_ldap_host_init()
267 ldap_destroy(ld); in mod_authn_ldap_host_init()
272 ldap_set_option(ld, LDAP_OPT_RESTART, LDAP_OPT_ON); in mod_authn_ldap_host_init()
275 ldap_set_option(ld, LDAP_OPT_NETWORK_TIMEOUT, &s->timeout); in mod_authn_ldap_host_init()
279 ldap_set_option(ld, LDAP_OPT_TIMEOUT, &s->timeout); in mod_authn_ldap_host_init()
287 ret = ldap_set_option(ld, LDAP_OPT_X_TLS_CACERTFILE, s->cafile); in mod_authn_ldap_host_init()
291 ldap_destroy(ld); in mod_authn_ldap_host_init()
296 ret = ldap_start_tls_s(ld, NULL, NULL); in mod_authn_ldap_host_init()
299 ldap_destroy(ld); in mod_authn_ldap_host_init()
304 return ld; in mod_authn_ldap_host_init()
307 static int mod_authn_ldap_bind(log_error_st *errh, LDAP *ld, const char *dn, const char *pw) { in mod_authn_ldap_bind() argument
321 ret = ldap_sasl_bind_s(ld,dn,LDAP_SASL_SIMPLE,&creds,NULL,NULL,NULL); in mod_authn_ldap_bind()
329 static int mod_authn_ldap_rebind_proc (LDAP *ld, LDAP_CONST char *url, ber_tag_t ldap_request, ber_… in mod_authn_ldap_rebind_proc() argument
334 return mod_authn_ldap_bind(s->errh, ld, s->binddn, s->bindpw); in mod_authn_ldap_rebind_proc()
398 LDAP *ld; in mod_vhostdb_ldap_query() local
437 ld = dbconf->ldap; in mod_vhostdb_ldap_query()
439 count = ldap_count_entries(ld, lm); in mod_vhostdb_ldap_query()
453 if (NULL == (first = ldap_first_entry(ld, lm))) { in mod_vhostdb_ldap_query()
454 mod_authn_ldap_opt_err(errh,__FILE__,__LINE__,"ldap_first_entry()",ld); in mod_vhostdb_ldap_query()
459 if (NULL != (vals = ldap_get_values_len(ld, first, dbconf->attr))) { in mod_vhostdb_ldap_query()