auth_ldap

Markus Teichmann jmt at brian.han.de
Wed Aug 20 01:52:13 MSD 2008


Hello,

here is another version. It supports an user for searching the required 
dn. The config statements are auth_ldap_bind_dn and auth_ldap_bind_passwd.
E.g.:

http {
     auth_ldap_uri "ldap://127.0.0.1";
     auth_ldap_bind_dn "cn=Manager,dc=chaos,dc=jmt";
     auth_ldap_bind_passwd "xxxxxxx";

     server {
         listen       80;
         server_name  localhost;
         location / {
             auth_ldap "LDAP Request";
             #auth_ldap_uri "ldap://127.0.0.1";
             auth_ldap_dn "ou=People,dc=chaos,dc=jmt";
             auth_ldap_attribute "uid";
             require ldap-user;

             root   html;
             index  index.html index.htm;
         }

One comment on the require statement: I implemented it this way, 
because I like to add a "require ldap-group" feature later. But next step 
is async and bugfix.

best regards,

Markus Teichmann

--
Markus Teichmann                                Tel: +49  172 301 31 56
Knebelweg 16
31135 Hildesheim                                Email: jmt at brian.han.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ngx_http_auth_ldap_module-0.1.2.tar.gz
Type: application/octet-stream
Size: 3014 bytes
Desc: 
URL: <http://nginx.org/pipermail/nginx/attachments/20080819/cc9551ba/attachment.obj>


More information about the nginx mailing list