Cyrus + LDAP Suggestions/Help

Michael Nguyen michaeln at twentyten.org
Sat Nov 6 15:26:45 EST 2004


I've been trying to get Cyrus IMAP/POP to authenticate via LDAP and I've run
into some problems.  First, here's my current setup:

 - Postfix 2.1.5
 - OpenLDAP 2.0.25
 - Cyrus 2.2.8

I have Postfix + LDAP delivering correctly.  Here's an LDAP entry on our dev
server:

# michaeln at test.spam, dev2, test, spam
dn: mail=michaeln at test.spam,dc=dev2,dc=test,dc=spam
objectClass: top
objectClass: MailAccount
accountStatus: TRUE
uid: 1000
userName: michaeln
mail: michaeln at test.spam
mailMessageStore: m.sub/i.sub/michaeln.macnt/
mailHost: dev2.test.spam
clearPassword: password2
userPassword:: e2NyeXB0fUtWSGxabGV0c25EMmM=

Here's /etc/imapd.conf

allowplaintext: yes
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
configdirectory: /var/imap
partition-default:/var/Accounts
admins: michaeln

Here is /etc/saslauthd.conf

ldap_servers: ldap://127.0.0.1
ldap_search_base: dc=dev2,dc=test,dc=spam
ldap_bind_dn: dc=dev2,dc=test,dc=spam
ldap_password: secret
ldap_scope: one
ldap_uidattr: userName
ldap_filter_mode:  yes
ldap_filter: userName=%u

But when I try to login as michaeln

Escape character is '^]'.
+OK dev2 Cyrus POP3 v2.2.8 server ready <1720342405.1099772815 at dev2>
user michaeln
+OK Name is a valid mailbox
quit
+OK
Connection closed by foreign host

Any suggestions would be greatly appreciated.  How do I troubleshoot this?
How do I tell if Cyrus is even accessing LDAP?


Michael

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list