<div dir="ltr">Any update on this?<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 16, 2015 at 7:26 PM, Erik Dubbelboer <<a href="mailto:erik@dubbelboer.com">erik@dubbelboer.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"># HG changeset patch<br># User Erik Dubbelboer <erik at <a href="http://dubbelboer.com">dubbelboer.com</a>><br># Date 1439715629 0<br># Node ID c6f0f112eb446b7ab4bc69c9e4e594dd79ca3293<br># Parent  bd55d75a1410502a9b4ac6fb44ec4528437b530a<br>Allow modules to set headers_in.user<br><br>Requesting $remote_user will always call ngx_http_auth_basic_user<br>which will always overwrite headers_in.user.<br>Modules that specify different modes of authentication,<br>such as Digest, can not set $remote_use without this patch.<br><br>diff -r bd55d75a1410 -r c6f0f112eb44 src/http/ngx_http_core_module.c<br>--- a/src/http/ngx_http_core_module.c    Sun Aug 16 10:51:34 2015 +0300<br>+++ b/src/http/ngx_http_core_module.c    Sun Aug 16 09:00:29 2015 +0000<br>@@ -2049,8 +2049,13 @@<br>     ngx_str_t   auth, encoded;<br>     ngx_uint_t  len;<br> <br>-    if (r->headers_in.user.len == 0 && r->headers_in.user.data != NULL) {<br>-        return NGX_DECLINED;<br>+    if (r->headers_in.user.data != NULL) {<br>+        if (r->headers_in.user.len == 0) {<br>+            return NGX_DECLINED;<br>+        } else {<br>+            /* headers_in.user is already set, don't parse again. */<br>+            return NGX_OK;<br>+        }<br>     }<br> <br>     if (r->headers_in.authorization == NULL) {<br>
<br>
_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br>
</blockquote></div><br></div></div></div>