Code Comments
Programming Forum and web based access to our favorite programming groups.Are the search functions for Net::LDAP and Net::LDAP::LDIF case sensitive? There are several DN's in my LDAP that have mixed cases. The LDAP is very large and I do not want to miss any entries. Regards, Howard
Post Follow-up to this messagehmarshal wrote: > Are the search functions for Net::LDAP and Net::LDAP::LDIF case > sensitive? No. LDAP searches are not case sensitive. The Directory remembers case, an d returns entries as they were put into the Directory, but searches are not ca se sensitive. > There are several DN's in my LDAP that have mixed cases. The LDAP is > very large and I do not want to miss any entries. > > Regards, > Howard >
Post Follow-up to this messageIn the immortal words of hmarshal: > Are the search functions for Net::LDAP and Net::LDAP::LDIF case > sensitive? Your LDAP server determines the sensitivity of case based on the attribute syntax of the attributes you're searching for. For most "standard" textual attributes like cn, searches are not case-sensitive (unless you've (foolishly?) configured your LDAP server differently). Other attributes may have more complicated matching rules. %% Christopher A. Bongaarts %% cab@tc.umn.edu %% %% Internet Services %% http://umn.edu/~cab %% %% University of Minnesota %% +1 (612) 625-1809 %%
Post Follow-up to this messageHow about the LDIF. This is a text file. Is the search case sensitive? Regards, Howard Marshall (334) 549-0949 -----Original Message----- From: Christopher A Bongaarts [mailto:cab@tc.umn.edu] Sent: Tuesday, May 17, 2005 1:28 PM To: hmarshal Cc: perl-ldap@perl.org Subject: Re: Search case sensitivity In the immortal words of hmarshal: > Are the search functions for Net::LDAP and Net::LDAP::LDIF case > sensitive? Your LDAP server determines the sensitivity of case based on the attribute syntax of the attributes you're searching for. For most "standard" textual attributes like cn, searches are not case-sensitive (unless you've (foolishly?) configured your LDAP server differently). Other attributes may have more complicated matching rules. %% Christopher A. Bongaarts %% cab@tc.umn.edu %% %% Internet Services %% http://umn.edu/~cab %% %% University of Minnesota %% +1 (612) 625-1809 %%
Post Follow-up to this messageOn 17/5/05 6:16, Elliot Foster <elliotf-perl-ldap@gratuitous.net> wrote: > hmarshal wrote: > > No. LDAP searches are not case sensitive. The Directory remembers case, and > returns entries as they were put into the Directory, but searches are not case > sensitive. That's not true. Directories support both case-insensitive and case-sensitive matching rules. Most commonly used attributes have associated case-insensitive matching rules. Cheers, Chris
Post Follow-up to this messageOn 17/5/05 7:26, Marshall, Howard <howard.marshall@lmco.com> wrote: > How about the LDIF. This is a text file. Is the search case sensitive? There are no search mechanisms defined for LDIF files, so case sensitivity is up to you.. Cheers, Chris
Post Follow-up to this messageChris Ridd wrote: > On 17/5/05 6:16, Elliot Foster <elliotf-perl-ldap@gratuitous.net> wrote: > > > > > That's not true. Directories support both case-insensitive and > case-sensitive matching rules. > > Most commonly used attributes have associated case-insensitive matching > rules. Yes, you are correct. I was contemplating amending my response after Christopher Bongaarts replied with the correct answer. I will do so in the future. And yes, most commonly they're not case sensitive, which is why I originally replied saying that it's not case sensitive. Case sensitive searches are fe w and far between (ordinarily).
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.