Subject: | Feature request "AUTHENTICATE_XXX" environment variables |
When I use the LDAP auth provider in Apache it provides some "extra"
AUTHENTICATE_XXX environment variables so that I don't have the hit the
server again.
I would like for Apache::AuthDBI to support this as well.
LDAP Example is
AuthBasicProvider ldap
AuthLDAPUrl ldap://ldapserver:389/OU=_COMPANY,DC=COMPANY,DC=com?
sAMAccountName,mail,name,extensionAttribute2,memberOf?base?
(objectClass=user)
All of the
values "sAMAccountName,mail,name,extensionAttribute2,memberOf" are
returned to the environment for use by the application.
These are also cached with the authentication so that the application
need not re-fetch these values
AUTHENTICATE_EXTENSIONATTRIBUTE2 somedatahere
AUTHENTICATE_MAIL email@address.xyz
AUTHENTICATE_MEMBEROF ...
AUTHENTICATE_NAME My Name
AUTHENTICATE_SAMACCOUNTNAME correctedloginwithcase
This is also consistent with Apache Module mod_authn_dbd
http://httpd.apache.org/docs/2.2/mod/mod_authn_dbd.html
If httpd was built against APR version 1.3.0 or higher, any additional
column values in the first row returned by the query statement will be
stored as environment variables with names of the form
AUTHENTICATE_COLUMN.