https://issues.apache.org/bugzilla/show_bug.cgi?id=47838
Summary: Ability to Dynamically Inject Current Time Into a
Filter
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: enhancement
Priority: P2
Component: mod_authz_ldap
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=24261)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24261)
Diff to allow for current server time to be injected into a filter.
I've modified some of the source from the mod_authz_ldap project
(http://authzldap.othello.ch/) and applied it to the native mod_authnz_ldap
module (http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html).
The code adds the ability to replace a special keyword of $t in a filter with
the current server time in the format of YYYYMMDDhhmmss.
This allows for a URL like:
AuthLDAPURL
"ldaps://server.company.com/ou=users,dc=company,dc=com?uid?sub?(expirationDate>=$tZ)"
to result in a query being sent to the server similar to:
(&(expirationDate>=200909140101Z)(uid=userj))
The code has not been heavily tested and my C skills have severely atrophied so
the code should be carefully scrutinized before committing.
The diff should be applied to modules/aaa/mod_authnz_ldap.c.
Please let me know if you have any questions. Thanks.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]