qmail-ldap and auth_smtp handling usernames differently between versions.

Edward Capriolo <[email protected]>
Newsgroups gmane.mail.qmail.ldap
Message-ID <[email protected]>
Hello list,

I have servers running an older version of qmail-ldap and (built from
source, build from FreeBSD ports?). I am in the middle of an upgrade
and have noticed that qmail-ldaplookup is working differently (latest
build). This manifests on the user end as mail clients were configured
for '[email protected]'
But qmail-auth is only accepting 'ecapriolo'

New Server:
[root@nymail1 /service/qmail-smtpd-5190]# qmail-ldaplookup -u ecapriolo
Searching ldap for: (&(objectClass=qmailUser)(uid=ecapriolo))
under dn: o=domain,c=US
Found 1 entry:

dn: [email protected],ou=user,ou=domain.com,o=domain,c=US
-------------------------------------------------------
objectClass: top
objectClass: person
objectClass: qmailUser
objectClass: inetOrgPerson
objectClass: shadowAccount
objectClass: sambaSamAccount
objectClass: posixAccount
objectClass: ldapPublicKey
objectClass: ciscoVPNUser
mail: [email protected]
uid: ecapriolo


Old server....
[root@mail2 smtpalt]# /var/qmail/bin/qmail-ldaplookup -u [email protected]
Searching ldap for: (&(objectClass=qmailUser)([email protected]))
under dn: o=domain,c=US
Found 1 entry:

dn: [email protected],ou=user,ou=domain.com,o=domain,c=US
-------------------------------------------------------
objectClass: top
objectClass: person
objectClass: qmailUser
objectClass: inetOrgPerson
objectClass: shadowAccount
objectClass: sambaSamAccount
objectClass: posixAccount
objectClass: ldapPublicKey
objectClass: ciscoVPNUser
mail: [email protected]
mail: [email protected]

Side note here: mail= is our naming attribute in openldap.  All the
control/ldap related files are identical between the old and the new
servers.

What changed?
Is this something I can fix with a control file?
Recompile?

Thank you,
Edward
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.