Skip to content

Commit

Permalink
Set authorization request variables in the ldapsearch case.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1913959 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
minfrin committed Nov 19, 2023
1 parent 510045e commit 4367037
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/aaa/mod_authnz_ldap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,8 @@ static authz_status ldapsearch_check_authorization(request_rec *r,
const void *parsed_require_args)
{
int result = 0;
authn_ldap_request_t *req =
(authn_ldap_request_t *)ap_get_module_config(r->request_config, &authnz_ldap_module);
authn_ldap_config_t *sec =
(authn_ldap_config_t *)ap_get_module_config(r->per_dir_config, &authnz_ldap_module);

Expand Down Expand Up @@ -1461,6 +1463,7 @@ static authz_status ldapsearch_check_authorization(request_rec *r,
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(02631)
"auth_ldap authorize: require ldap-search: "
"authorization successful");
set_request_vars(r, LDAP_AUTHZ, req->vals);
return AUTHZ_GRANTED;
}
else {
Expand Down

0 comments on commit 4367037

Please sign in to comment.