How is "realm" determined?

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

 



Hi all,

I have Cyrus setup on two servers the same way (as far as I know) and they both run off a MySQL database.

On one the realm is the server's FQDN and on the other it's the alias.

To given an example let's say my /etc/hosts file has an entry like this:

192.168.1.123  boson.example.com boson

On one of the servers the select statement to the database goes like this (looking at the logs with debug level 7):

     SELECT AES_DECRYPT(`password`, '...........') AS password
     FROM `accounts`
     WHERE `user`='.....' AND `realm`='boson' AND `virtual` != 0;

and the other like this:

    SELECT AES_DECRYPT(`password`, '...........') AS password
    FROM `accounts`
    WHERE `user`='.....' AND `realm`='boson.example.com' AND `virtual` != 0;

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).

----
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