Blake - 2008-01-02

Hello,

I am having trouble getting LDAP authentication to work.  Here is the
snippet of code that I am using:

#### auth module
## read authentication.txt for more info
auth.debug                 = 2
auth.backend               = "ldap"\ auth.backend.ldap.hostname = "x.x.x.x"
auth.backend.ldap.base-dn  = "dc=BLAH..."
auth.backend.ldap.bind-dn  = "cn=BLAH,ou=BLAH,dc=BLAH...."
auth.backend.ldap.bind-pw  = "XXX"
auth.backend.ldap.filter   = "sAMAccountName=$"
auth.require               = ( "/dimdim/" =>
                               (
                                 "method"  => "basic",
                                 "realm"   => "BLAH",
                                 "require" => "valid-user"
                               )
                             )

When I try and authenticate, I get:

2008-01-02 05:15:20: (http_auth.c.752) ldap: Operations error filter:
sAMAccountName=user
2008-01-02 05:15:20: (http_auth.c.865) password doesn't match for
/dimdim/ user

Is this a problem with using sAMAccountName not being supported?  I have
done an ldapsearch from this machine and it has responded successfully.
Thanks in advance...

Blake