Summary: | Ability to Dynamically Inject Current Time Into a Filter | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Ray Gauss II <ray> |
Component: | mod_authz_ldap | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | NEW --- | ||
Severity: | enhancement | CC: | covener |
Priority: | P2 | ||
Version: | 2.5-HEAD | ||
Target Milestone: | --- | ||
Hardware: | Macintosh | ||
OS: | Mac OS X 10.4 | ||
Attachments: |
Diff to allow for current server time to be injected into a filter.
Better handles dollar sign in filter |
Description
Ray Gauss II
2009-09-14 09:17:11 UTC
I'm not that familiar with the LDAP AAA, so somebody else might have a better approach to solve your problem. Just looking at the patch, C89 doesn't allow new variable declarations in the middle of a block. Also, see if you can handle the cases where $ is followed by a character other than 't', or $ is at the end. There should also be a way to include a $ in the string if you really want one. Created attachment 24263 [details]
Better handles dollar sign in filter
This version has variable declarations at the beginning of the method and should pass through any dollar signs ($) not followed by a dynamic tag (currently only t for the server timestamp).
(In reply to comment #2) > Created an attachment (id=24263) [details] > Better handles dollar sign in filter > > This version has variable declarations at the beginning of the method and > should pass through any dollar signs ($) not followed by a dynamic tag > (currently only t for the server timestamp). Have you thought about the implication of the cache here? Certainly administrators would have to pay careful attention to their caching strategies and (server timezones for that matter) depending on the accuracy needed for any sort of expiration authorization. |