[Date Prev][Date Next]
Re: ldapsearch oddities
I experienced a similar problem once. I think I resolved
it by reindexing the database.
Check your slapd.conf file to see if you are indexing
the attributes you want to search on, and that "sub"
(substring) is one of the indexes. For example,
index sn,gn,cn,uid pres,eq,approx,sub
Try re-indexing the database. See the following for
further information about indexing:
Mark Krischer wrote:
> i've got a problem with ldapseach. it seems to find things only some of the time.
> for example, if i have an entry cn=Mark Krischer and do:
> ldapsearch 'cn=Mark*'
> i might get no entries returned. but if i do:
> ldapsearch 'cn=M*'
> this is by no mean standard for all my entries. some will work and some won't.
> i'll get the entry for cn=Mark Krischer
> this causes problems when doing a search in netscape address book.
> i also have this problem search for uid--i'm using pam_ldap for cyrus_sasl/imap. again, for certain users:
> ldapsearch 'uid=userid'
> works and for some it doesn't. and for those it doesn't
> ldapsearch 'uid=u*'
> does work!
> any help will be greatly appreciated.
Tim Peterman - Unix & Web Server Administration
Lockheed Martin NE&SS-M/EIS, Moorestown, NJ