Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

[users@httpd] one more question

syed mehdi

2008-05-16

Replies:

Author LoginPost Reply
Hi Guys,
I am working on FC8 (fedora core). i want to authenticate a script in cgi-bin before any user can execute it.
now whenever i execute authenticate.py (placed at /usr/local/apache2/cgi-bin/authenticate)
i am getting ldap authentication dialog again and again (though i have provided correct login information)

for this effect i made changes in httpd.conf (placed at "/etc/httpd/conf/httpd.conf") and added lines as:
<Directory "/usr/local/apache2/cgi-bin/authenticate">
   AllowOverride AuthConfig
</Directory>

in folder /usr/local/apache2/cgi-bin/authenticate, i created .htaccess and added following lines in it:
AuthType Basic
AuthName 'LDAP Login (Please do not add prefix before username)'
AuthLDAPUrl ldap://machine-ip:389/ou=people,o=xyz.com?uid?sub?(objectClass=*)
<Files "authenticate.py">
        require valid-user
</Files>

Please help

Thanks & regards
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.