LDAP login not working with mod_authnz_ldap

Discussion in 'Apache' started by Theshockwave, Sep 19, 2013.

  1. #1
    Hello folks.

    I have an LDAP server on ldap.mydomain.com/
    The tree is like that:
    - dc=kimsufi,dc=com
    | - cn=admin
    | | - cn=John Doe
    | | - cn=Martin Doll
    | - cn=personnes
    | | - cn=Steeve SIM
    Code (markup):
    And my configuration is:
    <Directory "/var/www/mywebsitedirectory">
        Allow from all
        Order deny,allow
        Options FollowSymLinks
        AllowOverride None
        AuthType Basic
        AuthBasicProvider ldap
        AuthLDAPBindDN "cn=admin,DC=kimsufi,DC=com"
        AuthLDAPBindPassword "xxxxxxxx"
        AuthLDAPURL "ldap://ldap.mydomain.com:389/cn=personnes,dc=kimsufi,dc=com?uid?sub?(objectClass=*)"
        AuthzLDAPAuthoritative off
        AuthName "LDAP login for testers"
        Require ldap-filter &(uid=*)
    </Directory>
    Code (markup):
    And well... When I try to log in in mywebsitedirectory (it's a virtualhost) :
    In access.log :
    test.mydomain.com:80 x.x.x.x - CN=Steeve SIM,cn=personnes,dc=kimsufi,dc=com [13/Sep/2013:10:17:17 +0200] "GET / HTTP/1.1" 401 672 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64)
    Code (markup):
    In error.log :
    [error] [client x.x.x.x] user cn=Steeve SIM,cn=personnes,dc=kimsufi,dc=com not found: /
    Code (markup):
    I have tried so many solutions, followed all tutorials on the Internet, and I really don't know why, this isn't working.
    It's my main topic of my internship. I must succeed. Plese help. I'll be grateful.
    Thank you so much.
     
    Theshockwave, Sep 19, 2013 IP