On Tue, 2005-10-04 at 15:20 +0530, Gurjiv Singh wrote:
[...]
Oct 4 15:08:43 mail authdaemond: authuserdb: REJECT - try next module
Oct 4 15:08:43 mail authdaemond: authpam: trying this module
Oct 4 15:08:43 mail authdaemond: authpam: username 'ba...@example.com' not
found in password file
Oct 4 15:08:43 mail authdaemond: authpam: REJECT - try next module
Of course not. Guess why? You've given it an email address instead of a
UID.
Oct 4 15:08:43 mail authdaemond: authldap: trying this module
Oct 4 15:08:43 mail authdaemond: selected ldap protocol version 3
Oct 4 15:08:43 mail authdaemond: binding to LDAP server as DN '<null>',
password '<null>'
Oct 4 15:08:43 mail authdaemond: using search filter:
(mail=ba...@example.com)
Oct 4 15:08:43 mail authdaemond: ldap_search_st() failed
No idea, don't know what your authldaprc looks like.
[...]
Whereas the LDAP search is pretty fine:
# ldapsearch -x -LLL -b "uid=bammbamm,ou=it,ou=people,dc=example,dc=com"
"(objectclass=*)"
dn: uid=bammbamm,ou=it,ou=people,dc=example,dc=com
uid: bammbamm
givenName: Bamm
sn: Bamm
cn: Bamm Bamm
userPassword:: YmFtbV9zZWNyZXQ=
homeDirectory: /var/spool/mail/bammbamm
mail: ba...@example.com
maildrop: post...@example.com
maildrop: bamm...@example.com
maildrop: abu...@example.com
objectClass: CourierMailAlias
objectClass: CourierMailAccount
objectClass: inetOrgPerson
uidNumber: 1003
gidNumber: 1003
mailbox: /var/spool/mail/bammbamm/Maildir
quota: 5120000S
So it's probably authldaprc that's wrong. Did you run 'authtest bammbamm
[bammbammsPassword]'?
--Tonni