[dev] problem with implementing kolab multidomain support

Jan Schneider jan at horde.org
Sun Mar 5 05:43:29 PST 2006


Zitat von Tobias Koenig <tokoe at kde.org>:

> Hi,
>
> I currently try to implement multidomain support for the kolab driver,
> so when the user logs in, its imap home server is determined and the
> config is adapted.
>
> However the last step doesn't work. I put all the code in the
> _horde_hook_preautheticate method and query the homeserver from
> the LDAP. Now I thought a
>   $GLOBALS['config']['kolab']['imap']['server'] = $homeserver;
> would work, but the other horde parts (imp, kronolith etc.) call
> Registry::importConfig() again, so my change is overwritten.
>
> So is there a way (hook?) how to make my change immutable or
> reoverwrite the value after Registry::importConfig() has been called by
> the applications?

Can you determine the server name with a single expression? In this  
case you could turn the server name configuration from a configstring  
to a configphp setting.
Beside that you could get the server name from a Kolab:: method  
instead of the configuration value.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list