Hi,
I'm trying to build a ldap query with the current date or the current timestamp (something like myAttributeDate >= now()). All solutions I've found on Internet require to compute the current date in a script and then build the ldap query with the computed date.
Unfortunately, I can't do this because the ldap query will be in a static file: ldap_filter in /etc/saslauthd.conf.
Is it possible with OpenLDAP to use the current date or timestamp in a ldap query without compute it in a script?
Thanks.
Laurent Meunier wrote:
I'm trying to build a ldap query with the current date or the current timestamp (something like myAttributeDate >= now()). All solutions I've found on Internet require to compute the current date in a script and then build the ldap query with the computed date.
Unfortunately, I can't do this because the ldap query will be in a static file: ldap_filter in /etc/saslauthd.conf.
Is it possible with OpenLDAP to use the current date or timestamp in a ldap query without compute it in a script?
I vaguely remember that Daniel Pluta contributed patches for his I-D.
http://tools.ietf.org/html/draft-pluta-ldap-srv-side-current-time-match
Maybe you should dig in the ITS.
Ciao, Michael.
On 12/02/2014 22:12, Michael Ströder wrote:
Laurent Meunier wrote:
I'm trying to build a ldap query with the current date or the current timestamp (something like myAttributeDate >= now()). All solutions I've found on Internet require to compute the current date in a script and then build the ldap query with the computed date.
Unfortunately, I can't do this because the ldap query will be in a static file: ldap_filter in /etc/saslauthd.conf.
Is it possible with OpenLDAP to use the current date or timestamp in a ldap query without compute it in a script?
I vaguely remember that Daniel Pluta contributed patches for his I-D.
http://tools.ietf.org/html/draft-pluta-ldap-srv-side-current-time-match
Maybe you should dig in the ITS.
Michael, thank you for the link. That sounds very interesting, I'll take a look.
Hi!
I guess the LDAP standard doesn't have a syntax for the current time. So the solution could be that openLDAP provides a pseudo attribute "somewhere". But still I don't know how to relate a time attribute "somewhere" with another entry's attributes. Computing the literal "time now" seems the cleanest solution IMHO.
Regards, Ulrich
Michael Strödermichael@stroeder.com schrieb am 12.02.2014 um 22:12 in
Nachricht 52FBE3B0.7040503@stroeder.com:
Laurent Meunier wrote:
I'm trying to build a ldap query with the current date or the current timestamp (something like myAttributeDate >= now()). All solutions I've
found
on Internet require to compute the current date in a script and then build
the
ldap query with the computed date.
Unfortunately, I can't do this because the ldap query will be in a static file: ldap_filter in /etc/saslauthd.conf.
Is it possible with OpenLDAP to use the current date or timestamp in a
ldap
query without compute it in a script?
I vaguely remember that Daniel Pluta contributed patches for his I-D.
http://tools.ietf.org/html/draft-pluta-ldap-srv-side-current-time-match
Maybe you should dig in the ITS.
Ciao, Michael.
Ulrich Windl wrote:
Hi!
... more useless blather. Michael's response was correct and sufficient. When you have no idea what you're talking about, you should listen not speak.
Michael Strödermichael@stroeder.com schrieb am 12.02.2014 um 22:12 in
Nachricht 52FBE3B0.7040503@stroeder.com:
Laurent Meunier wrote:
I'm trying to build a ldap query with the current date or the current timestamp (something like myAttributeDate >= now()). All solutions I've
found
on Internet require to compute the current date in a script and then build
the
ldap query with the computed date.
Unfortunately, I can't do this because the ldap query will be in a static file: ldap_filter in /etc/saslauthd.conf.
Is it possible with OpenLDAP to use the current date or timestamp in a
ldap
query without compute it in a script?
I vaguely remember that Daniel Pluta contributed patches for his I-D.
http://tools.ietf.org/html/draft-pluta-ldap-srv-side-current-time-match
Maybe you should dig in the ITS.
Ciao, Michael.
You said: "you should listen not speak."
Howard Chu hyc@symas.com schrieb am 14.02.2014 um 15:38 in Nachricht
Ulrich Windl wrote:
Hi!
... more useless blather. Michael's response was correct and sufficient. When you have no idea what you're talking about, you should listen not speak.
Michael Strödermichael@stroeder.com schrieb am 12.02.2014 um 22:12 in
Nachricht 52FBE3B0.7040503@stroeder.com:
Laurent Meunier wrote:
I'm trying to build a ldap query with the current date or the current timestamp (something like myAttributeDate >= now()). All solutions I've
found
on Internet require to compute the current date in a script and then
build
the
ldap query with the computed date.
Unfortunately, I can't do this because the ldap query will be in a
static
file: ldap_filter in /etc/saslauthd.conf.
Is it possible with OpenLDAP to use the current date or timestamp in a
ldap
query without compute it in a script?
I vaguely remember that Daniel Pluta contributed patches for his I-D.
http://tools.ietf.org/html/draft-pluta-ldap-srv-side-current-time-match
Maybe you should dig in the ITS.
Ciao, Michael.
-- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
openldap-technical@openldap.org