You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chirapat Lathong <se...@hotmail.com> on 2003/05/26 08:20:38 UTC

[users@httpd] mod_ldap , mod_auth_ldap [SOS]

First,Sorry for some stupid question below

I  already download source code Apache2.0.45 from www.apache.org
and compile like this
./configure --with-ldap --enable-ldap --enable-auth-ldap
config my httpd.conf for LDAP authentication by add this code


LDAPSharedCacheSize 200000
LDAPCacheEntries 1024
LDAPCacheTTL 600
LDAPOpCacheEntries 1024
LDAPOpCacheTTL 600

<Location /ldap-status>
SetHandler ldap-status
Order deny,allow
Deny from all
Allow from 192.168.42.25
AuthLDAPEnabled on
AuthLDAPURL 
ldap://127.0.0.1:389/dc=tpctrain,dc=co,dc=th?uid?sub?(objectClass=*)
AuthLDAPAuthoritative on
require valid-user
</Location>
# above from www.apache.org
# below my addition
<Directory "/usr/local/apache2/htdocs/var/www/html">
SetHandler usr/local/apache2/htdocs/var/www/html
Order deny,allow
Deny from all
Allow from 192.168.42.22
AuthType Basic
AuthName "Restricted Files"
AuthLDAPEnabled on
AuthLDAPURL 
ldap://127.0.0.1:389/dc=tpctrain,dc=co,dc=th?uid?sub?(objectClass=*)
AuthLDAPAuthoritative on
require valid-user
</Directory>

I just want to enter /usr/local/apache2/htdocs/var/www/html
and need the browser ask me password
and password must come from LDAP
what wrong with my configuration file ?
or do I miss something ?

I attach that file in this mail too
in case you wanna see

every password and user came from SAMBA-LDAP

Thank you very much for every answer
ps. you can blame me about any stupid question
      you can contract me at  seeker_x1@hotmail.com  or seeker@thailand.com
Thank you again

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus