Hi.

Was wondering if authldap can authenticate if presented with the
mailAlternateAddress value. How can I set this up? auth using the mail
address is successful but using the mailAlternateAddress fails.

1. authtest using the mail address is successful.

$ authtest [email protected]

Authentication succeeded.

     Authenticated: [email protected]  (uid 11184, gid 2110)
    Home Directory: /var/qmail/maildirs/breyes/
           Maildir: /var/qmail/maildirs/breyes/Maildir/
             Quota: (none)
Encrypted Password: {MD5}X03MO1qnZdYdgyfeuILPmQ==
Cleartext Password: (none)
           Options: mailhost=pblmail01.bdopb.local

2. but authtest using the mailAlternateAddress fails.

$ authtest [email protected]

Authentication FAILED: Operation not permitted

3. Here's the user's LDAP entry

$ ldapsearch -x [email protected]

# extended LDIF
#
# LDAPv3
# base <dc=bdopb,dc=local> (default) with scope subtree
# filter: [email protected]
# requesting: ALL
#

# breyes, users, bdopb.local
dn: cn=breyes,ou=users,dc=bdopb,dc=local
cn: breyes
ou: users
sn: breyes
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: qmailUser
mailQuotaSize: 0
mailQuotaCount: 0
uid: breyes
accountStatus: active
mailHost: pblmail01.bdopb.local
qmailUID: 11184
qmailGID: 2110
homeDirectory: /var/qmail/maildirs/breyes/
mailMessageStore: /var/qmail/maildirs/breyes/Maildir/
mail: [email protected]
mailAlternateAddress: [email protected]
deliveryProgramPath: /usr/local/bin/maildrop
deliveryMode: nolocal

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

4. the contents of my authldaprc (less comments "#" and blank lines

$ cat /etc/courier/authldaprc | grep -v "#" | sed /^$/d

LDAP_URI               ldap://pblmail01.bdopb.local
LDAP_PROTOCOL_VERSION   3
LDAP_BASEDN             dc=bdopb,dc=local
LDAP_BINDDN             cn=Manager,dc=bdopb,dc=local
LDAP_BINDPW             <password>
LDAP_TIMEOUT            5
LDAP_AUTHBIND           1
LDAP_MAIL               mail
LDAP_DOMAIN           pb2.bdo.com.ph
LDAP_GLOB_UID           vmail
LDAP_GLOB_GID           vmail
LDAP_HOMEDIR           homeDirectory
LDAP_MAILDIR            mailMessageStore
LDAP_DEFAULTDELIVERY    defaultDelivery
LDAP_CLEARPW            clearPassword
LDAP_CRYPTPW            userPassword
LDAP_AUXOPTIONS mailhost=mailhost
LDAP_DEREF              never
LDAP_TLS                0


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to