Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Search case sensitivity
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


Report this thread to moderator Post Follow-up to this message
Old Post
Hmarshal
05-17-05 09:03 PM


Re: Search case sensitivity
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, 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
>


Report this thread to moderator Post Follow-up to this message
Old Post
Elliot Foster
05-17-05 09:03 PM


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    %%

Report this thread to moderator Post Follow-up to this message
Old Post
Christopher A Bongaarts
05-17-05 09:03 PM


RE: Search case sensitivity
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    %%


Report this thread to moderator Post Follow-up to this message
Old Post
Howard Marshall
05-18-05 02:01 AM


Re: Search case sensitivity
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



Report this thread to moderator Post Follow-up to this message
Old Post
Chris Ridd
05-18-05 02:01 AM


Re: Search case sensitivity
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



Report this thread to moderator Post Follow-up to this message
Old Post
Chris Ridd
05-18-05 02:01 AM


Re: Search case sensitivity
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 fe
w
and far between (ordinarily).

Report this thread to moderator Post Follow-up to this message
Old Post
Elliot Foster
05-18-05 02:01 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

LDAP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:12 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.