why does salspasswd2 always append a realm?

Andreas Winkelmann ml at awinkelmann.de
Wed Jan 3 18:10:53 EST 2007


On Wednesday 03 January 2007 22:38, Marten Lehmann wrote:

> I would like to insert an admin-user without a domain/realm into an
> sasldb2. But saslpasswd2 always appends the hostname to the userid I
> provide.
>
> Example:
>
> echo "test" | saslpasswd2 -c admin
> sasldblistusers2
> admin at localhost: userPassword
>
> How can I avoid this? I have "virtdomains: userid" in my
> /etc/imapd.conf, but I need an admin-user without realm so that I manage
> all accounts with it, not just accounts within the same realm.

Use a defaultdomain (man imapd.conf).

imapd.conf:
admins: admin admin at domain2.tld ...
defaultdomain: domain.tld

# saslpasswd2 -cu domain.tld admin

And authenticate as "admin".

-- 
	Andreas


More information about the Info-cyrus mailing list