[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: mail attribute possibly got corrupted?





--On Sunday, May 15, 2005 11:46 AM -0500 "Ramasamy, Sudhakar" <sud@neo.tamu.edu> wrote:


I had a completely well functioning ldap directory of virtual users. Postfix was querying it for local recipients and Courier IMAP was querying it for mailboxes successfully.

I was making a few modifications to enable users to change their ldap
passwords from horde and all of a sudden both postfix and Courier IMAP
were returning no valid users from the ldap directory.

I tracked the problem down to the mail attribute which was being queried.
I ran the following query and got no results when I should I received
one.

# ldapsearch -h 127.0.0.1 'mail=<email address>'

I then tried the below and got the expected result of the 1 record (* at
the end of the email address)


# ldapsearch -h 127.0.0.1 'mail=<email address>*'

I then updated the email address in the ldap directory by adding a space
at the end and then the first query worked fine. It continued to work
fine when I went back and deleted that space. I did similar modifications
for other records like delete a letter and go back and put it back and
the first query returned expected results. Postfix started working fine
as well.

The problem got fixed...but I'd like to know is it possible that the mail
attribute got corrupted across all records and if so how might it have
happened.

What directory software do you use?

What version of it?

If it isn't OpenLDAP, you'll need to write the appropriate forum for that software.

--Quanah



--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin