Re: How is "realm" determined?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
>
> See:
>
> http://www.cyrussasl.org/docs/cyrus-sasl/2.1.25/programming.php
>
> 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@realm). 
Check the saslauthd configuration.

Cheers,

-- 
Clément Hermann


----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus



[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux