ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Timur Batyrshin <batyrshin@ieml.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] realms и cyrus-imapd + saslauthd
Date: Tue, 21 Apr 2009 13:38:59 +0400
Message-ID: <20090421133859.48527d28@batyrshin.kzn.ieml.ru> (raw)
In-Reply-To: <200904211002.55661.a_s_y@sama.ru>

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

On Tue, 21 Apr 2009 10:02:55 +0500
Sergey wrote:

> > Настраиваю сервер IMAP (cyrus-imapd), который должен будет
> > обслуживать несколько доменов. База пользователей хранится в LDAP,
> > стало быть, sasl_pwcheck_method использую saslauthd.
> Могу только самый тупой вопрос задать: virtdomains: on есть в
> конфиге ?
> При sasl_auxprop_plugin: SQL реалмы точно работают.

Как оказалось, проблема была в том, что в конфиге указана строчка:
defaultdomain: domain.ru

При ее наличии при входе пользователей домена domain.ru цирус удаляет из
userid значение defaultdomain, но не передает никакого реалма к
saslauthd.
Проверить же на пользователях других доменов я как-то не догадался.

Решение -- убрать эту строчку из конфига цируса, либо добавить строчку
ldap_default_realm: domain.ru в конфиг saslauthd.
В первом случае пользователи домена domain.ru будут указывать в
качестве логина свой е-мейл, как и пользователи других доменов, во
втором же случае могут указывать как полный е-мейл, так и свой userid.

В каком варианте и как работает связка с postfix еще не проверял, но
этот вопрос уже легко решаемый.


Что касается realm, указываемого параметром к imtest -- это вообще из
другой оперы, и не имеет никакого отношения к реалму SASL.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

      reply	other threads:[~2009-04-21  9:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-20 16:13 Timur Batyrshin
2009-04-21  5:02 ` Sergey
2009-04-21  9:38   ` Timur Batyrshin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090421133859.48527d28@batyrshin.kzn.ieml.ru \
    --to=batyrshin@ieml.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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