[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Search Filter: Builtin Date/Time Functions?



Brian Piesik wrote:
ldapsearch "(&(radiusExpiration>=`date +%Y%m%d%H%M%S%z`))"

Here you are constructing a valid search filter with the help of shell expanding/escaping etc.


Obviously modifying
OpenLDAP should prove the least amount of work since it's one application
used by many.

Not possible without violating the LDAP standard.

My plan is use a predefined string / parameter that would be parsed
internally by the server. An example would be something like:
(&(radiusExpiration>=getDate()))

1. You have to extend the LDAP standard for this to work. In particular this affects the filter string representation. I'd suggest to read RFC 2254 before going any further.


2. This would be a server-side implementation of getDate() which is probably not what you're after. Think of time sync problems...

Ciao, Michael.