[Dovecot] dovecot and ldap

Antonis Faragitakis afarazit at gmail.com
Mon Feb 26 16:19:19 UTC 2007


hi

im trying to install dovecot and use ldap as the backend and i get the
following error
srv:/root# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND
UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS AUTH=PLAIN]
Dovecot ready.
1 login b.tapratzis passwordhere
1 NO Authentication failed.

tail -f /var/log/dovecot.info

dovecot: Feb 26 18:14:21 Info: auth(default): client in: AUTH   1
 PLAIN   service=IMAP    secured lip=127.0.0.1   rip=127.0.0.1
resp=AGIudGFwcmF0emlzADM2Yi50YXByIw==
dovecot: Feb 26 18:14:21 Info: auth(default):
ldap(b.tapratzisb.tapratzis,127.0.0.1): bind search:
base=ou=Company,ou=Ath,dc=company,dc=gr
filter=(&(objectClass=posixAccount)(uid=b.tapratzisb.tapratzis))
dovecot: Feb 26 18:14:21 Info: auth(default):
ldap(b.tapratzisb.tapratzis,127.0.0.1): unknown user
dovecot: Feb 26 18:14:21 Info: auth(default): client out: FAIL  1
 user=b.tapratzisb.tapratzis

i cant understand why is place 2 times the username in the uid= for search.

my dovecot.conf:
 passdb ldap {
    args = /etc/dovecot-ldap.conf
  }
userdb ldap {
    args = /etc/dovecot-ldap.conf
  }

my dovecot-ldap.conf:
base = ou=Company,ou=Ath,dc=company,dc=gr
deref = never
scope = subtree
user_attrs = uid,homeDirectory,,uid,uidNumber,gidNumber
user_filter = (&(objectClass=posixAccount)(uid=%u))
pass_attrs = uid=user,userPassword=password,homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid




where it my be the fault?


Thanks
Atn


More information about the dovecot mailing list