[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: how use lastmod to track last modify time
Hi,
On Sunday 24 November 2002 13:33, you wrote:
> O.k., but supposing I want to find all (modifyTimestamp)s more/greater
> than 20021108214351Z or 200211082143* ? I *did* try a few different
> filters, but it ain't happy. Doesn't surprise me, though, 'cos this kind
> of thing won't work with normal filters, either (integer comparison
> doesn't work).
In my tests with OpenLDAP 2.1.8 the filter (modifyTimestamp<=20021108214351Z)
works.
To get the reverse (i.e. >=) you have to use the (|(!(...<=...))(...=...))
trick [i.e. (not <=) or = ] since LDAP filters know only <= as ordering
operator.
You have to keep the Z at the end since the value isn't an integer but a time
Yours
PEter
--
Peter Marschall | eMail: peter.marschall@mayn.de
Scheffelstraße 15 | peter.marschall@is-energy.de
97072 Würzburg | Tel: 0931/14721
PGP: D7 FF 20 FE E6 6B 31 74 D1 10 88 E0 3C FE 28 35