From 43670373a1466201731b9d04b4d0a5ff961b76fc Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Sun, 19 Nov 2023 10:10:02 +0000 Subject: [PATCH] Set authorization request variables in the ldapsearch case. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1913959 13f79535-47bb-0310-9956-ffa450edef68 --- modules/aaa/mod_authnz_ldap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/aaa/mod_authnz_ldap.c b/modules/aaa/mod_authnz_ldap.c index 6d62d9d585f..3ae77e77860 100644 --- a/modules/aaa/mod_authnz_ldap.c +++ b/modules/aaa/mod_authnz_ldap.c @@ -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); @@ -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 {