if (!req) {
authz_status rv = AUTHZ_DENIED;
req = build_request_config(r);
+ ldc = get_connection_for_authz(r, LDAP_COMPARE);
if (AUTHZ_GRANTED != (rv = get_dn_for_nonldap_authn(r, ldc))) {
return rv;
}
}
- ldc = get_connection_for_authz(r, LDAP_COMPARE);
+ else {
+ ldc = get_connection_for_authz(r, LDAP_COMPARE);
+ }
+
/*
* If we have been authenticated by some other module than mod_authnz_ldap,
if (!req) {
authz_status rv = AUTHZ_DENIED;
req = build_request_config(r);
+ ldc = get_connection_for_authz(r, LDAP_COMPARE);
if (AUTHZ_GRANTED != (rv = get_dn_for_nonldap_authn(r, ldc))) {
return rv;
}
}
- ldc = get_connection_for_authz(r, LDAP_COMPARE);
+ else {
+ ldc = get_connection_for_authz(r, LDAP_COMPARE);
+ }
/*
* If there are no elements in the group attribute array, the default should be
if (!req) {
authz_status rv = AUTHZ_DENIED;
req = build_request_config(r);
+ ldc = get_connection_for_authz(r, LDAP_SEARCH); /* comparedn is a search */
if (AUTHZ_GRANTED != (rv = get_dn_for_nonldap_authn(r, ldc))) {
return rv;
}
}
- ldc = get_connection_for_authz(r, LDAP_SEARCH); /* comparedn is a search */
+ else {
+ ldc = get_connection_for_authz(r, LDAP_SEARCH); /* comparedn is a search */
+ }
require = ap_expr_str_exec(r, expr, &err);
if (err) {
if (!req) {
authz_status rv = AUTHZ_DENIED;
req = build_request_config(r);
+ ldc = get_connection_for_authz(r, LDAP_COMPARE);
if (AUTHZ_GRANTED != (rv = get_dn_for_nonldap_authn(r, ldc))) {
return rv;
}
}
- ldc = get_connection_for_authz(r, LDAP_COMPARE);
+ else {
+ ldc = get_connection_for_authz(r, LDAP_COMPARE);
+ }
if (req->dn == NULL || strlen(req->dn) == 0) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01733)
if (!req) {
authz_status rv = AUTHZ_DENIED;
req = build_request_config(r);
+ ldc = get_connection_for_authz(r, LDAP_SEARCH);
if (AUTHZ_GRANTED != (rv = get_dn_for_nonldap_authn(r, ldc))) {
return rv;
}
}
- ldc = get_connection_for_authz(r, LDAP_SEARCH);
+ else {
+ ldc = get_connection_for_authz(r, LDAP_SEARCH);
+ }
if (req->dn == NULL || strlen(req->dn) == 0) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01742)