From: Vanole, M. <mik...@at...> - 2002-08-13 18:08:42
|
Thanks for the path to go down. My ldap admin says the fields are not text so wildcards won't work. He suggested trying this without the equals symbol, but it also failed (a bit differently): $filter = "(&(whenCreated > 20020812000000.0Z) (whenCreated < 20020812235959.0Z))"; Bad filter at get_ldap.pl line 63. This also fails with "Bad filter": my $filter = "(whencreated > 20020812000000.0Z)"; I can do this but I still don't achieve my objective of getting under the server imposed sizelimit: $whenCreated = $entry->get_value( whenCreated, asref => 0 ); if ($whenCreated =~ /^20020812/) { ..do something perlish... Working with Net::LDAP and seeking advice from my ColdFusion counterparts I am finding they are only a little helpful because the differences in options available between ADO, VB, and ColdFusion (basically NT) and Net::LDAP are many. For instance I am bumping into a server imposed sizelimit with Net::LDAP that the NT guys don't have. And apparently they don't have the filter issues I'm having. Is there a *differences* document that anyone can point me to? I'm die-hard-perl-on-UNIX so moving to NT is not an option. -----Original Message----- From: Chris Ridd [mailto:chr...@me...] Sent: Tuesday, August 13, 2002 11:30 AM To: Vanole, Mike; Vanole, Mike; 'per...@li...' Subject: Re: Net::LDAP Filter question On 13/8/02 4:53 pm, Vanole, Mike <mik...@at...> wrote: > Correction below on the range filter. I was actually trying this: > > my $filter = "(&(whenCreated >= 20020812000000.0Z) (whenCreated =< > 20020812235959.0Z))" > or > my $filter = "(&(whenCreated >= 200208120000000Z) (whenCreated =< > 200208122359590Z))" > > and even this: > my $filter = "(&(whencreated >= 20020812000000.0Z))"; > or > my $filter = "(&(whencreated >= 200208120000000Z))"; Does your server support ordering (ie >= and <=) matching rules on the whencreated attribute? You may need to download the schema to discover this. If so, do you need any additional indexes on the server? Cheers, Chris |