From: Jim Jagielski Date: Tue, 7 Jan 2025 15:07:55 +0000 (+0000) Subject: *) mod_lua: Make r.ap_auth_type writable X-Git-Tag: 2.4.63-candidate~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6056e353d4ecbbf40f7f7de8799ea0275d632d5a;p=thirdparty%2Fapache%2Fhttpd.git *) mod_lua: Make r.ap_auth_type writable git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1922962 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/STATUS b/STATUS index d6b811c8bcf..b00ce2df093 100644 --- a/STATUS +++ b/STATUS @@ -157,10 +157,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - *) mod_lua: Make r.ap_auth_type writable - trunk patch: https://svn.apache.org/r1921260 - 2.4.x patch: svn merge -c 1921260 ^/httpd/httpd/trunk . - +1: jorton, covener, jim PATCHES PROPOSED TO BACKPORT FROM TRUNK: [ New proposals should be added at the end of the list ] diff --git a/changes-entries/pr62497.txt b/changes-entries/pr62497.txt new file mode 100644 index 00000000000..c4f555d066b --- /dev/null +++ b/changes-entries/pr62497.txt @@ -0,0 +1,2 @@ + *) mod_lua: Make r.ap_auth_type writable. PR 62497. + [Michael Osipov ] diff --git a/docs/manual/mod/mod_lua.xml b/docs/manual/mod/mod_lua.xml index 75330deeeb3..9ea35c9996c 100644 --- a/docs/manual/mod/mod_lua.xml +++ b/docs/manual/mod/mod_lua.xml @@ -360,7 +360,7 @@ end ap_auth_type string - no + yes If an authentication check was made, this is set to the type of authentication (f.x. basic) diff --git a/docs/manual/mod/mod_lua.xml.fr b/docs/manual/mod/mod_lua.xml.fr index 50b104ba91d..d7f524972e0 100644 --- a/docs/manual/mod/mod_lua.xml.fr +++ b/docs/manual/mod/mod_lua.xml.fr @@ -383,7 +383,7 @@ end ap_auth_type string - non + oui Ce champ contient le type d'authentification effectuée (par exemple basic) diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index cfb89b80cab..689780da46e 100644 --- a/modules/lua/lua_request.c +++ b/modules/lua/lua_request.c @@ -2551,6 +2551,12 @@ static int req_newindex(lua_State *L) request_rec *r = ap_lua_check_request_rec(L, 1); key = luaL_checkstring(L, 2); + if (0 == strcmp("ap_auth_type", key)) { + const char *value = luaL_checkstring(L, 3); + r->ap_auth_type = apr_pstrdup(r->pool, value); + return 0; + } + if (0 == strcmp("args", key)) { const char *value = luaL_checkstring(L, 3); r->args = apr_pstrdup(r->pool, value);