<div dir="ltr">Maxim<br>Thanks for your answer.<br><br>What I am trying to do is basically this:<br><br>When a user navigate to a certain domain, a http authentication box will open and he will need to enter his username and password.<br>

Then nginx will send the following information in a header to a php script:<br>- $username entered in auth<br>- $password entered in auth<br>- group provided in nginx location block<br><br>The php script will in turn do the authentication against ldap and will return either 201 (success!) or 401 (try again and auth will re-open).<br>

What I don&#39;t really get yet, and pardon me but I&#39;m still new to nginx (and i&#39;ve tried reading the wiki and your documentation for the module) is how to make the user go through authentication box and use the information provided in it to pass it to my php script.<br>

<br>Basically if you could point me to a wiki or a code, that would be awesome.<br>I also think it could be nice to open a wiki page explaining how your module can be used this way since whoever who will migrate his apache+mod_auth_dbm or apache+mod_auth_ldap configuration will mostly need that information.<br>

<br>This question is of course addressed to anyone on this mailing list, if anyone can help, I&#39;d be grateful.<br>Thanks a lot!<br><br clear="all">---<br>Adam Benayoun | CEO  /  <a href="http://www.lionite.com">http://www.lionite.com</a><br>

Gtalk/MSN: <a href="mailto:adam@lionite.com">adam@lionite.com</a> | Skype: adam.benayoun<br>Cell: +(972)544835975 | Twitter: @adambn<br><br> <br>
<br><br><div class="gmail_quote">On Mon, Aug 9, 2010 at 15:23, Maxim Dounin <span dir="ltr">&lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hello!<br>
<div class="im"><br>
On Mon, Aug 09, 2010 at 02:20:44PM +0300, Adam Benayoun wrote:<br>
<br>
&gt; Hello all,<br>
&gt; I&#39;m new to nginx (and first post on this mailing list),I have read the wiki<br>
&gt; and scoured the web in order to find a nginx_mysql_auth or nginx_ldap_auth<br>
&gt; module for nginx.<br>
&gt; I am migrating my servers from apache to nginx + nginx-php-fpm now this is<br>
&gt; included with php-5.3.0 and in all of theses servers I am using a<br>
&gt; centralized directory to manage access to phpmyadmin, SVN repositories and<br>
&gt; much more.<br>
&gt; Now my question is this: I haven&#39;t been able to find anything that answer my<br>
&gt; needs, I want nginx to talk directly with mysql or ldap and the only think<br>
&gt; I&#39;ve found is this:<br>
&gt; <a href="http://code.svn.wordpress.org/nginx_auth_mysql/README" target="_blank">http://code.svn.wordpress.org/nginx_auth_mysql/README</a><br>
&gt;<br>
&gt; Apparently the folks at wordpress have developed something based on the PAM<br>
&gt; auth module by sergio Talens-Oliag but I keep hearing that this module isn&#39;t<br>
&gt; non-blocking and therefore might ruin my nginx performance (although on my<br>
&gt; production server, I&#39;ll need this only to limit access to phpmyadmin and<br>
&gt; this will be accesses only few times a week apparently).<br>
<br>
</div>Yes, it&#39;s blocking (as well as auth pam and auth ldap modules<br>
flying around).<br>
<div class="im"><br>
&gt; Does anyone know another modules? Are new modules in the work? Can someone<br>
&gt; enlighten me if using this module will indeed ruin my nginx performance?<br>
&gt; Should I hold with switching from apache to nginx? Because managing htpasswd<br>
&gt; across more than 10 servers isn&#39;t something I&#39;m willing to do at this stage.<br>
<br>
</div>You may want to try this one:<br>
<br>
<a href="http://mdounin.ru/hg/ngx_http_auth_request_module/" target="_blank">http://mdounin.ru/hg/ngx_http_auth_request_module/</a><br>
<br>
It&#39;s non-blocking and you are free to code any<br>
authentication/authorization backend.<br>
<font color="#888888"><br>
Maxim Dounin<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>