httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chirapat Lathong" <seeker...@hotmail.com>
Subject [users@httpd] Apache2 HTTP server authentication with LDAP
Date Mon, 26 May 2003 05:02:43 GMT
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

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

Mime
View raw message