How is "realm" determined?
"Clément Hermann (nodens)"
nodens2099 at gmail.com
Tue Jul 24 11:47:51 EDT 2012
Le 23/07/2012 23:56, Dan White a écrit :
> On 07/23/12 14:03 -0700, Reg Proctor wrote:
> The host file is the only place I can find where the short version of
> the domain exists yet when I remove it (and restart network, cyrus &
> sasl) the new setup still uses just "boson" instead of the FQDN like the
> first one I setup.
> I guess it really doesn't matter which way it works since I can always
> change the entries in the database to match but I would like to know
> enough to where I can predict what will happen if not actually control
> it (which would be the ideal of course).
> How the realm is calculated is hard to nail down. Different mechanisms
> calculate it in different ways.
> In the case where a client doesn't specify a realm, the realm is likely
> going to be the result of a gethostbyname() system call.
> On my Linux system, the manpage for 'hostname' claims to provide the value
> returned by the gethostname system. I think that 'hostname -f' should give
> you the same value that sasl should use for the realm.
If you use saslauthd, it is in charge of sasl user/realm lookup. The
usual way is to tell saslauthd to split the email address (user at realm).
Check the saslauthd configuration.
More information about the Info-cyrus