Hi,
I have been using Dovecot with LDAP support (only for password
authentication) for a couple of weeks already and everything was running
smoothly so far.. till last week when discovered interesting thing:
whenever I start LDAP server (openldap 2.3.24) before I start Dovecot
everything is fine.. however when Dovecot is started first and then LDAP
server it's not possible to authenticate :-(
My dovecot-ldap.conf file:
hosts = 127.0.0.1
auth_bind = yes
auth_bind_userdn = uid=%u,ou=Users,dc=domain,dc=tld
ldap_version = 3
base = ou=Users,dc=domain,dc=tld
These are messages I get in syslog:
slapd is down
Aug 15 18:56:55 ftp dovecot: Dovecot v1.0.rc6 starting up
Aug 15 18:56:56 ftp dovecot: auth(default): LDAP: Can't connect to
server: 127.0.0.1
slapd is started
Aug 15 18:58:36 ftp dovecot: imap-login: Disconnected: Inactivity:
method=plain, rip=192.168.1.3, lip=192.168.1.2, TLS
Aug 15 18:58:36 ftp dovecot: login: tried to change state 2 -> 2 (if you
can't login at all, see src/lib/fdpass.c)
slapd messages:
Aug 15 18:57:19 ftp slapd[20544]: slapd starting
Aug 15 18:57:36 ftp slapd[20544]: conn=0 fd=11 ACCEPT from
IP=127.0.0.1:37703 (IP=0.0.0.0:389)
Aug 15 18:57:36 ftp slapd[20544]: conn=0 op=0 BIND
dn="uid=user,ou=Users,dc=domain,dc=tld" method=128
Aug 15 18:57:36 ftp slapd[20544]: conn=0 op=0 BIND
dn="uid=user,ou=Users,dc=domain,dc=tld" mech=SIMPLE ssf=0
Aug 15 18:57:36 ftp slapd[20544]: conn=0 op=0 RESULT tag=97 err=0 textAug 15
18:58:39 ftp slapd[20544]: conn=0 op=1 BIND anonymous
mech=implicit ssf=0
Aug 15 18:58:39 ftp slapd[20544]: conn=0 op=1 BIND
dn="uid=user,ou=Users,dc=domain,dc=tld" method=128
Aug 15 18:58:39 ftp slapd[20544]: conn=0 op=1 BIND
dn="uid=user,ou=Users,dc=domain,dc=tld" mech=SIMPLE ssf=0
Aug 15 18:58:39 ftp slapd[20544]: conn=0 op=1 RESULT tag=97 err=0 textAug 15
18:59:41 ftp slapd[20544]: conn=0 op=2 BIND anonymous
mech=implicit ssf=0
Aug 15 18:59:41 ftp slapd[20544]: conn=0 op=2 BIND
dn="uid=user,ou=Users,dc=domain,dc=tld" method=128
Aug 15 18:59:41 ftp slapd[20544]: conn=0 op=2 BIND
dn="uid=user,ou=Users,dc=domain,dc=tld" mech=SIMPLE ssf=0
Aug 15 18:59:41 ftp slapd[20544]: conn=0 op=2 RESULT tag=97 err=0 text
Has anyone else has the same problem ?
Regards,
Marcin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20060816/dcbbca98/attachment.bin>