Greetings,

I'm running Apache 2.2.0-21 under SuSE,  and having trouble with directory authentication. I want to authenticate user according to a remote ldap server.

These are the parts I added to my httpd.conf in order to make the authentication work:

LoadModule ldap_module /usr/lib64/apache2/mod_ldap.so
LoadModule authnz_ldap_module /usr/lib64/apache2/mod_authnz_ldap.so
LoadModule dav_fs_module /usr/lib64/apache2/mod_dav_fs.so
LoadModule authz_user_module /usr/lib64/apache2/mod_authz_user.so

... ( not important things )

Alias /mp3 /srv/www/htdocs/mp3

<Directory "/srv/www/htdocs/mp3">
AuthBasicProvider ldap
AuthType Basic
AuthName "Secret"
AuthLDAPURL ldap://SERVER_IP?BASE_DN?cn
require ldap-user username
require valid-user
Dav On
</Directory>

When I try to access the /mp3/ directory using http://localhost/mp3, the browser open the authentication window, but when I use "User Name = username" "Password = password", it takes me to a "Server Error" page.

This is the error message I get in error_log: [warn] [client 192.168.1.4] [20566] auth_ldap authenticate: user username authentication failed; URI /mp3/ [APR LDAP: Unable to initialize the LDAP connection][Can't contact LDAP server]

After that, if I use "netstat -tupan", it indicates that I have an open connection with the ldap's server machine (not only one, really. It says I have various processes communicating with it, through the 389 port, default for ldap).

The server machine is running OpenLDAP on Debian.

Does anyone can help me at least on discovering what's happening?

Thanks in advance!


--
Engraçado, costumam dizer que tenho sorte. Só sei que, quanto mais eu me preparo, mais sorte eu tenho (Antony Robbins)

------------------------------------------------------
Rodrigo Gama
[EMAIL PROTECTED]

LONGADATA
Tecnologia da  Informação
------------------------------------------------------

Reply via email to