我已经设置 lighttpd 来使用 ldap 后端,如下所示:
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"
)
)
当我访问该 URL 时,系统会提示我输入凭证。我输入凭证后,系统立即再次要求我输入凭证,日志中只有一行:
(http_auth.c.877) get_password failed, IP: xx.xx.xxx.xxx
就像我在 StackExchange 上发布的大多数内容一样,我确信我做错了。任何帮助我都感激不尽。
答案1
有两件事是错误的:
auth.backend = "ldap"
auth.backend.ldap.filter = "(uid=$)"
鲍勃,你是叔叔。