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

RE: ldapsearch in OL 2



Matthew,

I have used a technique like this to get all of July:

	
'(&(modifyTimestamp>=20010701000000Z)(modifyTimestamp<=20010731235959Z))' 

Useful?

Warren.

Warren Dale -- UUNet Ltd
Email  warren.dale@au.uu.net
Voice  (02) 9434-5354 | +61 2 9434 5354
Mobile 0412-700-966   | +61 412 700 966


> -----Original Message-----
> From: Matthew Palmer [mailto:mjp16@ieee.uow.edu.au]
> Sent: Friday, 3 August 2001 16:35
> To: Pierangelo Masarati
> Cc: openldap-software@OpenLDAP.org
> Subject: Re: ldapsearch in OL 2
> 
> 
> On Fri, 3 Aug 2001, Pierangelo Masarati 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 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?).
> 
> Yeah, I think Z === Zulu.  However, I don't need, want, or 
> desire second
> resolution - I need month resolution.  I could use the full 
> form and then
> discard everything after the month, but there is significant 
> code deployed
> on site which assumes a 6-digit, YYYYmm format string.  
> Modifying all that
> is likely to be an irritating venture, and will probably 
> occupy us beyond
> the release of 2.0.12 (or .13, for that matter).
> 
> > > 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 ...
> 
> That sounds like a reasonable vote of confidence.
> 
> 
> -- 
> --------------------------------------------------------------
> ---------
> #include <disclaimer.h>
> Matthew Palmer
> mjp16@ieee.uow.edu.au
>