[sork] vacation, xml-config and realm

Martin Luethi horde at humbapa.ch
Mon Jan 26 23:41:18 PST 2004


Mon, 26 Jan 2004 23:01:43 +0100 Jan Schneider <jan at horde.org>:

> Zitat von Eric Rostetter <eric.rostetter at physics.utexas.edu>:
>
>> Quoting Jan Schneider <jan at horde.org>:
>>
>>> Indeed. I didn't even notice that the sql configuration is different from
>>> the other backends and am a bit confused now why this is the case.
>>
>> We had a lot of demand, including from some of the developers who 
>> implemented
>> some of the code, for support for multiple realms/domains with separate
>> configurations.  So they would use one module (passwd, forwards, whatever)
>> with 3 domains, but one domain was (for example) sql based, the second
>> domain was ldap based, and the third domain was perhaps file system based.
>> They wanted the one module to handle all three different domains.  The
>> realm based configuration was what we came up with, for better or for
>> worse.
>
> Yes, I got that. But the example parameters of the sql backend didn't
> include *any* realm information, be it an example domain or "default".
> That's what is different to the other backends.

the sork-modules use different "config-styles"
accounts: conf.xml without realm or preferred
forwards: conf.xml with realms
passwd: backends.php with preferred
vacation: conf.xml with realms

I am not sure I get this right, please correct me if not:
realms: the "server" selection is based on the username (user at realm)
preferred: the selection is based on the server-hostname ($_SERVER
['SERVER_NAME'] or $_SERVER['HTTP_HOST'])

so we have 2 possibilities to choose a "server". because there are also other
horde-modules who need "server-selection" it would be nice to include that
somewhere in the horde-framework. with that, the "server-selection" would be
the same for each module who use conf.xml. (I think it should be somewhere in
horde/lib/Horde.php)

but I have no idea if this is possible or not (I'm new to horde-development...)

maybe it would be easier to just add my vacation-patch :-)

g. martin luethi


More information about the sork mailing list