Всем доброго дня.
Второй день бьюсь с dovecot'ом. Никак не могу заставить работать с OpenLDAP.Вот что пишет в логах:
Feb 01 15:36:50 auth: Error: ldap_bind
Feb 01 15:36:50 auth: Error: ldap_simple_bind
Feb 01 15:36:50 auth: Error: ldap_sasl_bind
Feb 01 15:36:50 auth: Error: ldap_send_initial_request
Feb 01 15:36:50 auth: Error: ldap_new_connection 1 1 0
Feb 01 15:36:50 auth: Error: ldap_int_open_connection
Feb 01 15:36:50 auth: Error: ldap_connect_to_host: TCP localhost:389
Feb 01 15:36:50 auth: Error: ldap_new_socket: 15
Feb 01 15:36:50 auth: Error: ldap_prepare_socket: 15
Feb 01 15:36:50 auth: Error: ldap_connect_to_host: Trying 127.0.0.1:389
Feb 01 15:36:50 auth: Error: ldap_pvt_connect: fd: 15 tm: -1 async: 0
Feb 01 15:36:50 auth: Error: ldap_open_defconn: successful
Feb 01 15:36:50 auth: Error: ldap_send_server_request
Feb 01 15:36:50 auth: Error: ldap_result ld 0x28633300 msgid -1
Feb 01 15:36:50 auth: Error: wait4msg ld 0x28633300 msgid -1 (timeout 0 usec)
Feb 01 15:36:50 auth: Error: wait4msg continue ld 0x28633300 msgid -1 all 0
Feb 01 15:36:50 auth: Error: ** ld 0x28633300 Connections:
Feb 01 15:36:50 auth: Error: * host: localhost port: 389 (default)
Feb 01 15:36:50 auth: Error: refcnt: 2 status: Connected
Feb 01 15:36:50 auth: Error: last used: Tue Feb 1 15:36:50 2011
Feb 01 15:36:50 auth: Error:
Feb 01 15:36:50 auth: Error:
Feb 01 15:36:50 auth: Error: ** ld 0x28633300 Outstanding Requests:
Feb 01 15:36:50 auth: Error: * msgid 1, origid 1, status InProgress
Feb 01 15:36:50 auth: Error: outstanding referrals 0, parent count 0
Feb 01 15:36:50 auth: Error: ld 0x28633300 request count 1 (abandoned 0)
Feb 01 15:36:50 auth: Error: ** ld 0x28633300 Response Queue:
Feb 01 15:36:50 auth: Error: Empty
Feb 01 15:36:50 auth: Error: ld 0x28633300 response count 0
Feb 01 15:36:50 auth: Error: ldap_chkResponseList ld 0x28633300 msgid -1 all 0
Feb 01 15:36:50 auth: Error: ldap_chkResponseList returns ld 0x28633300 NULL
Feb 01 15:36:50 auth: Error: ldap_int_select
Feb 01 15:36:50 auth: Error: read1msg: ld 0x28633300 msgid -1 all 0
Feb 01 15:36:50 auth: Error: read1msg: ld 0x28633300 msgid 1 message type bind
Feb 01 15:36:50 auth: Error: read1msg: ld 0x28633300 0 new referrals
Feb 01 15:36:50 auth: Error: read1msg: mark request completed, ld 0x28633300 msgid 1
Feb 01 15:36:50 auth: Error: request done: ld 0x28633300 msgid 1
Feb 01 15:36:50 auth: Error: res_errno: 0, res_error: <>, res_matched: <>
Feb 01 15:36:50 auth: Error: ldap_free_request (origid 1, msgid 1)
Feb 01 15:36:50 auth: Error: ldap_parse_result
Feb 01 15:36:50 auth: Error: ldap_msgfree
Feb 01 15:36:50 auth: Error: ldap_result ld 0x28633300 msgid -1
Feb 01 15:36:50 auth: Error: wait4msg ld 0x28633300 msgid -1 (timeout 0 usec)
Feb 01 15:36:50 auth: Error: wait4msg continue ld 0x28633300 msgid -1 all 0
Feb 01 15:36:50 auth: Error: ** ld 0x28633300 Connections:
Feb 01 15:36:50 auth: Error: * host: localhost port: 389 (default)
Feb 01 15:36:50 auth: Error: refcnt: 1 status: Connected
Feb 01 15:36:50 auth: Error: last used: Tue Feb 1 15:36:50 2011
Feb 01 15:36:50 auth: Error:
Feb 01 15:36:50 auth: Error:
Feb 01 15:36:50 auth: Error: ** ld 0x28633300 Outstanding Requests:
Feb 01 15:36:50 auth: Error: Empty
Feb 01 15:36:50 auth: Error: ld 0x28633300 request count 0 (abandoned 0)
Feb 01 15:36:50 auth: Error: ** ld 0x28633300 Response Queue:
Feb 01 15:36:50 auth: Error: Empty
Feb 01 15:36:50 auth: Error: ld 0x28633300 response count 0
Feb 01 15:36:50 auth: Error: ldap_chkResponseList ld 0x28633300 msgid -1 all 0
Feb 01 15:36:50 auth: Error: ldap_chkResponseList returns ld 0x28633300 NULL
Feb 01 15:36:50 auth: Error: ldap_int_select
Версия dovecot 2.0.7
dovecot.conf:
!include conf.d/*.conf
protocols = imap
listen = *
base_dir = /var/run/dovecot/
login_greeting = Dovecot ready.
#login_trusted_networks =
#login_access_sockets =
#verbose_proctitle = no
#shutdown_clients = yes
#doveadm_socket_path = doveadm-server
dict {
#quota = mysql:/usr/local/etc/dovecot/dovecot-dict-sql.conf.ext
#expire = sqlite:/usr/local/etc/dovecot/dovecot-dict-sql.conf.ext
}
dovecot-ldap.conf:
# hosts = 127.0.0.1
uris = ldap://localhost
dn = cn=root,dc=appri,dc=ru
dnpass = password
sasl_bind = no
#sasl_mech =
#sasl_realm =
#sasl_authz_id =
#tls = no
#tls_ca_cert_file =
#tls_ca_cert_dir =
#tls_cipher_suite =
#tls_cert_file =
#tls_key_file =
#tls_require_cert =
#ldaprc_path =
debug_level = -1
auth_bind = yes
auth_bind_userdn = cn=root,dc=appri,dc=ru
ldap_version = 3
base = dc=appri,dc=ru
deref = never
scope = subtree
user_attrs = cn
user_filter = (&(objectClass=mailAccount)(cn=%u))
pass_attrs = uid=user,userPassword=password
#pass_attrs = uid=user,userPassword=password,\
# homeDirectory=userdb_home,uidNumber=userdb_uid,gidNumber=userdb_gid
pass_filter = (&(objectClass=mailAccount)(cn=%u))
#iterate_attrs = uid=user
#iterate_filter = (objectClass=posixAccount)
#default_pass_scheme = CRYPT