Ticket #1564 (closed defect: fixed)
auth.backend.ldap.filter not working with conditionals/not being rebuilt
| Reported by: | laph@… | Owned by: | jan |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4.20 |
| Component: | mod_auth | Version: | 1.4.19 |
| Severity: | normal | Keywords: | |
| Cc: | Blocked By: | ||
| Need User Feedback: | no | Blocking: |
Description
If you define a (dynamic) filter within a conditional like this:
$HTTP["host"] == "a.host.name" {
var.customer = "customer-name"
auth.backend.ldap.filter = "(&(uid=$)(|(gidNumber=345)(cn=" + var.customer + ")))"
auth.require = (
"" => (
"method" => "basic",
"realm" => "Login",
"require" => "valid-user",
),
)
}
the filter seems to be built ONLY ONCE and never be rebuild based on the HTTP-Host.
Therefore the first Login-Attempt from a HTTP-Host fixes the LDAP-Filter, making it quite unusable with virtual hosting.
Using "require => user=xxx|user=yyy" doesn't work for us - we have hundreds of them, some shared between V-Servers, some not. Therefore we need "dynamic" LDAP-Filters based on the HTTP-Host conditional.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

