<div dir="ltr">use ngx_lua for 401 auth example: <a href="http://chenxiaoyu.org/2012/02/08/nginx-lua-401-auth.html">http://chenxiaoyu.org/2012/02/08/nginx-lua-401-auth.html</a> </div><div class="gmail_extra"><br clear="all">
<div>--<div><div>smallfish <a href="http://chenxiaoyu.org" target="_blank">http://chenxiaoyu.org</a></div></div></div>
<br><br><div class="gmail_quote">On Sun, Aug 25, 2013 at 2:53 PM, Christian Felsing <span dir="ltr"><<a href="mailto:pug+nginx@felsing.net" target="_blank">pug+nginx@felsing.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I am new to nginx and have following problem:<br>
<br>
Nginx should be used as a reverse proxy and configured for client<br>
certificate authentication. Backoffice application supports basic auth only.<br>
Apache 2.4 solution for that kind of problems is "Fake Basic Auth" so<br>
backoffice application gets a remote_user and password generated from<br>
client certificate presented by user.<br>
<br>
Example:<br>
AuthBasicFake %{SSL_CLIENT_S_DN_CN} %{sha1:passphrase-%{SSL_CLIENT_S_DN_CN}}<br>
This set remote user to CN from client certifiate.<br>
<br>
is there a similar mechanism in Nginx?<br>
<br>
Does HttpLuaModule allow to fake a 401 authentication?<br>
<br>
best regards<br>
Christian<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>