Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

auth.debug = 2
auth.backend = "htdigest"
auth.backend.ldap.hostname = ""
auth.backend.ldap.base-dn = "ou=active,ou=employees,ou=people,"
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:

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

share|improve this question

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


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.