Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've setup lighttpd to use an ldap backend like so:

auth.debug = 2
auth.backend = "htdigest"
auth.backend.ldap.hostname = "ldap.xxxxx.com"
auth.backend.ldap.base-dn = "ou=active,ou=employees,ou=people,o=xxxxx.com"
auth.backend.ldap.allow-empty-pw = "disable"

auth.require = ("/report" =>
        (
        "method" => "basic",
        "realm" => "restricted",
        "require" => "valid-user"
        )
    )

When I visit the URL, I am prompted for my credentials. I enter them in, and I am immediately asked for them again, with a single line in the log:

(http_auth.c.877) get_password failed, IP: xx.xx.xxx.xxx

Like most things I post on StackExchange, I'm certain I'm doing something wrong. Any help is appreciated.

share|improve this question

1 Answer 1

2 things were wrong:

  1. auth.backend = "ldap"
  2. auth.backend.ldap.filter = "(uid=$)"

Bob's you're uncle.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.