Lines Matching refs:NULL

54     if (NULL != dbconf->ldap) ldap_unbind_ext_s(dbconf->ldap, NULL, NULL);  in mod_vhostdb_dbconf_free()
93 const buffer *filter = NULL; in mod_vhostdb_dbconf_setup()
95 const char *basedn=NULL,*binddn=NULL,*bindpw=NULL,*host=NULL,*cafile=NULL; in mod_vhostdb_dbconf_setup()
120 timeout = strtol(ds->value.ptr, NULL, 10); in mod_vhostdb_dbconf_setup()
138 if (NULL != filter && !buffer_is_blank(filter) in mod_vhostdb_dbconf_setup()
139 && NULL != host && NULL != basedn) { in mod_vhostdb_dbconf_setup()
142 if (NULL == strchr(filter->ptr, '?')) { in mod_vhostdb_dbconf_setup()
153 dbconf->ldap = NULL; in mod_vhostdb_dbconf_setup()
260 return NULL; in mod_authn_ldap_host_init()
268 return NULL; in mod_authn_ldap_host_init()
292 return NULL; in mod_authn_ldap_host_init()
296 ret = ldap_start_tls_s(ld, NULL, NULL); in mod_authn_ldap_host_init()
300 return NULL; in mod_authn_ldap_host_init()
311 if (NULL != pw) { in mod_authn_ldap_bind()
315 creds.bv_val = NULL; in mod_authn_ldap_bind()
321 ret = ldap_sasl_bind_s(ld,dn,LDAP_SASL_SIMPLE,&creds,NULL,NULL,NULL); in mod_authn_ldap_bind()
338 LDAPMessage *lm = NULL; in mod_authn_ldap_search()
339 char *attrs[] = { LDAP_NO_ATTRS, NULL }; in mod_authn_ldap_search()
348 if (s->ldap != NULL) { in mod_authn_ldap_search()
350 attrs, 0, NULL, NULL, NULL, 0, &lm); in mod_authn_ldap_search()
357 attrs, 0, NULL, NULL, NULL, 0, &lm); in mod_authn_ldap_search()
363 ldap_unbind_ext_s(s->ldap, NULL, NULL); in mod_authn_ldap_search()
367 if (NULL == s->ldap) { in mod_authn_ldap_search()
368 return NULL; in mod_authn_ldap_search()
375 s->ldap = NULL; in mod_authn_ldap_search()
376 return NULL; in mod_authn_ldap_search()
380 attrs, 0, NULL, NULL, NULL, 0, &lm); in mod_authn_ldap_search()
384 ldap_unbind_ext_s(s->ldap, NULL, NULL); in mod_authn_ldap_search()
385 s->ldap = NULL; in mod_authn_ldap_search()
386 return NULL; in mod_authn_ldap_search()
410 if (NULL == p->conf.vdata) return 0; /*(after resetting docroot)*/ in mod_vhostdb_ldap_query()
417 if (NULL != (d = strchr(b, '?'))) { in mod_vhostdb_ldap_query()
432 if (NULL == lm) { in mod_vhostdb_ldap_query()
453 if (NULL == (first = ldap_first_entry(ld, lm))) { in mod_vhostdb_ldap_query()
459 if (NULL != (vals = ldap_get_values_len(ld, first, dbconf->attr))) { in mod_vhostdb_ldap_query()
473 { "ldap", mod_vhostdb_ldap_query, NULL }; in INIT_FUNC()
485 if (NULL == p->cvlist) return; in FREE_FUNC()
490 if (cpv->vtype != T_CONFIG_LOCAL || NULL == cpv->v.v) continue; in FREE_FUNC()
500 default_cafile = NULL; in FREE_FUNC()
534 ,{ NULL, 0, in SETDEFAULTS_FUNC()
553 if (NULL != cpv->v.v) in SETDEFAULTS_FUNC()
573 ldap_set_option(NULL, LDAP_OPT_X_TLS_CACERTFILE, dbconf->cafile); in SETDEFAULTS_FUNC()