ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] saslauthd and postfix
@ 2009-08-13 14:29 Alexey Morsov
  2009-08-13 15:18 ` Timur Batyrshin
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Morsov @ 2009-08-13 14:29 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

[-- Attachment #1: Type: text/plain, Size: 2137 bytes --]

Приветствую.

Что-то у меня не сростается с saslauthd.

Имеем:

поднятый ldap с имеющейся там структурой ну и пользователем.
юзер этот постфиксом через фильтр 
(&(&(objectClass=qmailUser)(mail=%s))(accountStatus=active))
находится.

root@mail ~ # cat /etc/sysconfig/saslauthd
OPTIONS="-a ldap -O /etc/sasl2/saslauthd.conf -m
/var/spool/postfix/var/run/saslauthd"

root@mail ~ # grep ^smtpd_sasl /etc/postfix/main.cf
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = cyrus
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_authenticated_header = yes

root@mail ~ # cat /etc/postfix/sasl/smtpd.conf
pwcheck_method: saslauthd


root@mail ~ # grep '^l' /etc/sasl2/saslauthd.conf
ldap_servers: ldap://localhost:389
ldap_bind_dn: cn=saslauthd,ou=Daemons,dc=organization,dc=ru
ldap_bind_pw: password
ldap_version: 3
ldap_timeout: 5
ldap_time_limit: 5
ldap_scope: sub
ldap_search_base: ou=MailUsers,dc=organization,dc=ru
ldap_auth_method: custom
ldap_default_realm: organization.ru
ldap_filter = (&(objectClass=qmailUser)(mail=%u@%r)(accountStatus=active))
ldap_debug: 3

после запуска saslauthd

# testsaslauthd -u user@organization.ru -p password
0: NO "authentication failed"

при этом в логе вижу только 
Aug 13 18:25:41 mail saslauthd[11184]: do_auth         : auth failure:
[user=user@organization.ru] [service=imap] [realm=] [mech=ldap] [reason=Unk
nown]

Такое чувство что оно к ldap даже не пытается обратиться.

Что я мог прошляпить ?

-- 
WBR,
Alexey Morsov
программист ЗАО "ИК "Риком-Траст"
Jabber: samurai@www.fondmarket.ru
ALT Linux Team Member

<-- gns has quit ("Я БЮЛХ УНПНЬН, МН МЮДН УЮПД ОНДЙКЧВЮРЭ")
 * raorn никогда бы не подумал, что gns БЮЛХ УНПНЬН да ещё и МН МЮДН УЮПД
   ОНДЙКЧВЮРЭ...

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 489 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-14 13:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-13 14:29 [Sysadmins] saslauthd and postfix Alexey Morsov
2009-08-13 15:18 ` Timur Batyrshin
2009-08-14  7:29   ` Alexey Morsov
2009-08-14 13:03   ` Alexey Morsov

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git