[Kolab-devel] roundcube 1.0-0.16 multidomain kolab 3.1

Jeroen van Meeuwen (Kolab Systems) vanmeeuwen at kolabsys.com
Wed Oct 30 16:40:51 CET 2013


On 2013-10-30 09:05, Manel Gimeno Zaragozá wrote:
> My question is, has someone created a hosted environment with kolab
> 3.1 dev? how roundcube multidomain management works? There is no info
> in kolab 3.1 documentacion, neither in ruondcube documentation.
> 

Yes, we run mykolab.com on vanilla Kolab 3.1 [1]. This is *without* any 
third party patches.

> Anyway, I find a way to simulate the behaviour I'm looking for, it is
> including this code:
> 
> $server = $_SERVER["HTTP_HOST"];
> $dn = explode('.',$server);
> $count = count($dn);
> $domain_base_dn = "dc=$dn[0]";
> $i = 1;
> while ($i < $count){
>    $domain_base_dn = $domain_base_dn . ",dc=$dn[$i]";
>    $i++;
> }
> 

Our configuration looks as follows:

== config.inc.php ==

     $components = explode('.', $_SERVER["HTTP_HOST"]);
     array_shift($components);
     $domain = implode('.', $components);

     // Note that this is for cookies
     $config['session_domain'] = $domain;

     // Note that this is only for a default "@$domain" suffix
     // to an otherwise not fully qualified user login name.
     $config['username_domain'] = $domain;
     $config['mail_domain'] = null;

Attached you find our kolab_auth.inc.php for webmail.

Kind regards,

Jeroen van Meeuwen

[1] http://kolab.org/blog/vanmeeuwen/2013/08/18/my-kolab-es-su-kolab

-- 
Systems Architect, Kolab Systems AG

e: vanmeeuwen at kolabsys.com
m: +44 74 2516 3817
w: http://www.kolabsys.com

pgp: 9342 BF08
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kolab_auth.inc.php
Type: text/x-php
Size: 3281 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20131030/a2f80205/attachment.bin>


More information about the devel mailing list