The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"Dovecot + OpenLDAP"
Вариант для распечатки  
Пред. тема | След. тема 
Форум Открытые системы на сервере (Почта / FreeBSD)
Изначальное сообщение [ Отслеживать ]

"Dovecot + OpenLDAP"  +/
Сообщение от Mufanu (ok) on 01-Фев-11, 13:53 
Всем доброго дня.
Второй день бьюсь с 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

Ответить | Правка | Cообщить модератору

Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "Dovecot + OpenLDAP"  +/
Сообщение от Гость on 02-Фев-11, 14:49 
> Всем доброго дня.
> Второй день бьюсь с dovecot'ом.  Никак не могу заставить работать с
> OpenLDAP.
> Вот что пишет в логах:
> Feb 01 15:36:50 auth: Error: ldap_bind

...
> auth_bind = yes
> auth_bind_userdn = cn=root,dc=appri,dc=ru

Перечитайте про auth_bind внимательно. Эти параметры предписывают проверять логин/пароль пользователя через попытку аутентификации в LDAP, а Вы сразу указываете конкретного пользователя вместо шаблона. Сделайте так:

auth_bind_userdn = cn=%u,dc=appri,dc=ru

Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору

2. "Dovecot + OpenLDAP"  +/
Сообщение от zerot email(??) on 21-Фев-11, 17:30 
или же настройте авторизацию пользователей ОС через LDAP, и просто разрешите давкоту авторизоваться через ос авторизацию. Но. Не во всех случаях это то, чего вы хотите
Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору

3. "Dovecot + OpenLDAP"  +/
Сообщение от Mufanu (ok) on 24-Фев-11, 06:54 
Получилось настроить, не правильны были настройки auth_bind

Ответить | Правка | ^ к родителю #2 | Наверх | Cообщить модератору

Архив | Удалить

Рекомендовать для помещения в FAQ | Индекс форумов | Темы | Пред. тема | След. тема




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру