Не получается связать Courier-Imap с Active Directory 2003
Поставил с портов Courier-Imap и Courier-Authlib с ldap'ом
Подправил конф:
grep -v '#' /usr/local/etc/authlib/authldaprc
LDAP_URI ldap://testserver.kg-united.local
LDAP_PROTOCOL_VERSION 3
LDAP_BASEDN cn=Users, dc=KG-United, dc=local
LDAP_BINDDN Administrator@KG-United.local
LDAP_BINDPW 1234567
LDAP_TIMEOUT 5
LDAP_AUTHBIND 1
LDAP_MAIL sAMAccountName
LDAP_FILTER (objectClass=user)
LDAP_HOMEDIR sAMAccountName
LDAP_MAILROOT /var/mail
LDAP_MAILDIR mailbox
LDAP_DEFAULTDELIVERY defaultDelivery
LDAP_FULLNAME cn
LDAP_CRYPTPW userPassword
LDAP_DEREF never
LDAP_TLS 0телнетюсь на 110 порт в логах ошибки:
debug.log:
Apr 23 18:41:25 test pop3d: Connection, ip=[127.0.0.1]
Apr 23 18:41:30 test authdaemond: received auth request, service=pop3, authtype=login
Apr 23 18:41:30 test authdaemond: authldap: trying this module
Apr 23 18:41:30 test authdaemond: selected ldap protocol version 3
Apr 23 18:41:30 test authdaemond: binding to LDAP server as DN 'Administrator@KG-United.local', password '1234567'
Apr 23 18:41:30 test authdaemond: using search filter: (&(objectClass=user)(sAMAccountName=dima))
Apr 23 18:41:30 test authdaemond: one entry returned, DN: CN=Dima,CN=Users,DC=KG-United,DC=local
Apr 23 18:41:30 test authdaemond: raw ldap entry returned:
Apr 23 18:41:30 test authdaemond: | cn: Dima
Apr 23 18:41:30 test authdaemond: | sAMAccountName: Dima
Apr 23 18:41:30 test authdaemond: authldaplib: sysusername=<null>, sysuserid=0, sysgroupid=0, homedir=Dima, address=dima, fullname=Dima, mail
Apr 23 18:41:30 test authdaemond: authldaplib: clearpasswd=<null>, passwd=<null>
Apr 23 18:41:30 test authdaemond: no password to compare against!
Apr 23 18:41:30 test authdaemond: authldap: REJECT - try next module
Apr 23 18:41:30 test authdaemond: FAIL, all modules rejected
maillog:
Apr 23 18:41:19 test authdaemond: modules="authldap", daemons=5
Apr 23 18:41:19 test authdaemond: Installing libauthldap
Apr 23 18:41:19 test authdaemond: Installation complete: authldap
Apr 23 18:41:30 test authdaemond: authldaplib: refuse to authenticate dima: uid=0, gid=0 (zero uid or gid not permitted)
Apr 23 18:41:30 test pop3d: LOGIN FAILED, user=dima, ip=[127.0.0.1]
Ошибка логин и пароль не правильный...
На windows 2003 server поставил SP 2...
Подскажите...