]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
*) mod_lua: Make r.ap_auth_type writable
authorJim Jagielski <jim@apache.org>
Tue, 7 Jan 2025 15:07:55 +0000 (15:07 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 7 Jan 2025 15:07:55 +0000 (15:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1922962 13f79535-47bb-0310-9956-ffa450edef68

STATUS
changes-entries/pr62497.txt [new file with mode: 0644]
docs/manual/mod/mod_lua.xml
docs/manual/mod/mod_lua.xml.fr
modules/lua/lua_request.c

diff --git a/STATUS b/STATUS
index d6b811c8bcf28f46ff32c8c27873c6e644b3bc90..b00ce2df0936ca9b614b060e4b8d8f84a8147396 100644 (file)
--- 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 (file)
index 0000000..c4f555d
--- /dev/null
@@ -0,0 +1,2 @@
+  *) mod_lua: Make r.ap_auth_type writable.  PR 62497.
+     [Michael Osipov <michaelo apache.org>]
index 75330deeeb35bd3908843bb2fa2b8f78e785d25f..9ea35c9996c91aaed47b94656752e40c8d35744c 100644 (file)
@@ -360,7 +360,7 @@ end
         <tr>
           <td><code>ap_auth_type</code></td>
           <td>string</td>
-          <td>no</td>
+          <td>yes</td>
           <td>If an authentication check was made, this is set to the type 
           of authentication (f.x. <code>basic</code>)</td>
         </tr>
index 50b104ba91d68ed423d60aad95e894b3b8c26d77..d7f524972e090f1a02140f0a9dfe8eb5b988ef91 100644 (file)
@@ -383,7 +383,7 @@ end
         <tr>
           <td><code>ap_auth_type</code></td>
           <td>string</td>
-          <td>non</td>
+          <td>oui</td>
          <td>Ce champ contient le type d'authentification effectuĂ©e
          (par exemple <code>basic</code>)</td>
         </tr>
index cfb89b80cabb95360801a9a2ef93026919ca95c8..689780da46e64a83563a0140e4a3446cce1dd6da 100644 (file)
@@ -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);