Bug 65171 - authn_socache doesn't cache well with authn_ldap if LDAP URL contains multiple attributes
Summary: authn_socache doesn't cache well with authn_ldap if LDAP URL contains multipl...
Status: CLOSED CLOSED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_authn_socache (show other bugs)
Version: 2.4.46
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-06 20:51 UTC by Avi
Modified: 2021-03-07 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Avi 2021-03-06 20:51:21 UTC
Hi,

As recommended in the docs, I tried configuring authnz_ldap with authn_socache.
This works well if AuthLDAPURL contains only the login attribute, but if it contains others then it doesn't cache them and their value cannot be used.

To reproduce, I used the following config
AuthName admin
AuthType basic
AuthBasicProvider  socache ldap 
AuthLDAPURL "ldap://127.0.0.1/DC=corp,DC=ad?sAMAccountName,displayName,mail?sub?(objectClass=*)"
Require valid-user

whenever I try to access displayName or mail, their value is undefined.
Comment 1 Avi 2021-03-07 19:05:33 UTC
please ignore, sorry