In Apache, what would be the best way to only give access to users who pass the two following tests:
- User does not appear in blacklist (alternatively, appears in whitelist)
- User has valid LDAP user account
I already have the second test in place but I now need to bar some of the valid LDAP users. Note that I cannot create an AD group to represent my black/white list.
I have managed to do that using
The config then looks something like:
However, I still don’t know whether that would be feasible if I wanted to blacklist LDAP usernames instead of IP addresses. (Covener seems to suggest some complex config could do it but I haven’t tried it).