Home > Archive > LDAP > May 2005 > Search case sensitivity
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Search case sensitivity
|
|
| Hmarshal 2005-05-17, 4:03 pm |
| 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
| |
| Elliot Foster 2005-05-17, 4:03 pm |
| hmarshal 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, and
returns entries as they were put into the Directory, but searches are not 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
>
| |
| Christopher A Bongaarts 2005-05-17, 4:03 pm |
| 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 %%
| |
| Howard Marshall 2005-05-17, 9:01 pm |
| How 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 %%
| |
| Chris Ridd 2005-05-17, 9:01 pm |
| On 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
| |
| Chris Ridd 2005-05-17, 9:01 pm |
| On 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
| |
| Elliot Foster 2005-05-17, 9:01 pm |
| Chris 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 few
and far between (ordinarily).
|
|
|
|
|