version 1.1.1.1, 2013/10/14 10:32:47
|
version 1.1.1.2, 2014/06/15 20:20:06
|
Line 764 static int http_auth_basic_password_compare(server *sr
|
Line 764 static int http_auth_basic_password_compare(server *sr
|
if (auth_ldap_init(srv, p->anon_conf) != HANDLER_GO_ON) |
if (auth_ldap_init(srv, p->anon_conf) != HANDLER_GO_ON) |
return -1; |
return -1; |
|
|
if (p->anon_conf->ldap == NULL || | if (NULL == p->anon_conf->ldap) return -1; |
LDAP_SUCCESS != (ret = ldap_search_s(p->anon_conf->ldap, p->conf.auth_ldap_basedn->ptr, LDAP_SCOPE_SUBTREE, p->ldap_filter->ptr, attrs, 0, &lm))) { | |
| if (LDAP_SUCCESS != (ret = ldap_search_s(p->anon_conf->ldap, p->conf.auth_ldap_basedn->ptr, LDAP_SCOPE_SUBTREE, p->ldap_filter->ptr, attrs, 0, &lm))) { |
log_error_write(srv, __FILE__, __LINE__, "sssb", |
log_error_write(srv, __FILE__, __LINE__, "sssb", |
"ldap:", ldap_err2string(ret), "filter:", p->ldap_filter); |
"ldap:", ldap_err2string(ret), "filter:", p->ldap_filter); |
return -1; |
return -1; |