/* build the username filter */
authn_ldap_build_filter(filtbuf, r, user, NULL, sec);
+ ap_log_rerror(APLOG_MARK, APLOG_TRACE1, 0, r,
+ "auth_ldap authenticate: final authn filter is %s", filtbuf);
+
/* convert password to utf-8 */
utfpassword = authn_ldap_xlate_password(r, password);
/* Search failed, log error and return failure */
if(result != LDAP_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
- "auth_ldap authorise: User DN not found, %s", ldc->reason);
+ "auth_ldap authorise: User DN not found with filter %s: %s", filtbuf, ldc->reason);
return AUTHZ_DENIED;
}
/* Search failed, log error and return failure */
if(result != LDAP_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
- "auth_ldap authorise: User DN not found, %s", ldc->reason);
+ "auth_ldap authorise: User DN not found with filter %s: %s", filtbuf, ldc->reason);
return AUTHZ_DENIED;
}
/* Search failed, log error and return failure */
if(result != LDAP_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r,
- "auth_ldap authorise: User DN not found, %s", ldc->reason);
+ "auth_ldap authorise: User DN not found with filter %s: %s", filtbuf, ldc->reason);
return AUTHZ_DENIED;
}
sec->have_ldap_url = 1;
- ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, cmd->server,
+ ap_log_error(APLOG_MARK, APLOG_TRACE1, 0, cmd->server,
"auth_ldap url parse: `%s', Host: %s, Port: %d, DN: %s, "
"attrib: %s, scope: %s, filter: %s, connection mode: %s",
url,