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

Re: ldapsearch in OL 2



Matthew Palmer wrote:

> The Admin manual on openldap.org doesn't mention these Matches, but I tried
> them and slapd didn't whinge (which it has for other bogus Matches).
> However, I've been unable to successfully perform the search specified
> above, even after modifying the schema and restarting the server.

You may find them in servsers/slapd/schema_init.c; they work fine for me:

match:
ldapsearch -x -LLL '(modifyTimestamp=20010727074748Z)' 1.1
cn=Pierangelo Masarati,cn=People,dc=aero,dc=polimi,dc=it

ordering:
ldapsearch -x
-LLL '(&(modifyTimestamp>=20010727074747Z)(modifyTimestamp<=20010727074749Z))'
1.1
cn=Pierangelo Masarati,cn=People,dc=aero,dc=polimi,dc=it

you need to write the full timestamp, that is 'YYYYmmddHHMMSSZ':
4 digit year, 2 digit month, day, hour, minutes and seconds, and finally a 'Z'

(for Zulu?).

>
> Next suggestion, anyone?  I'm leaning towards CVSing REL_ENG_2, but I'm
> reticent to trundle in that direction due to not having the available time
> to report copious bugs likely to be involved with a CVS release....

Well, REL_ENG_2 is likely to become 2.0.12 during the weekend ...

Pierangelo.

--
Dr. Pierangelo Masarati               | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale                | fax:   +39 02 2399 8334
Politecnico di Milano                 | mailto:masarati@aero.polimi.it
via La Masa 34, 20156 Milano, Italy   | http://www.aero.polimi.it/~masarati