How is "realm" determined?

Reg Proctor reg at seowebsales.com
Mon Jul 23 17:03:21 EDT 2012


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20120723/40619bd8/attachment.html 


More information about the Info-cyrus mailing list