[Kolab-devel] roundcube 1.0-0.16 multidomain kolab 3.1
Manel Gimeno Zaragozá
magiza83 at hotmail.com
Wed Oct 30 09:05:20 CET 2013
>Before you start, maybe it's a good idea to look at the current 3.1 documentation which is being rewritten. The old 3.0 doesn't cover >the multi domain setup that clear.>http://hosted.kolabsys.com/~vanmeeuwen/build/html/index.html
>
>You should look into the scripts if Timotheus as well, to see what kind of config changes are needed for an initial multi domain setup >(like cyrus canonization, ldap changes, etc)>http://www.tbits.net/tbits-opensource/kolab3multipledomains.html>https://github.com/tpokorra/kolab3_tbits_scripts/tree/master/kolab3.1
Thanks for your response, but I've already created a hosted environment following all this guides, but it was under kolab 3.0. And everything was working perfectly.
Now I'm trying to recreated the same environment but with packages from kolab 3.1.
As far as I now, roundcube has been updated to roundcubemail-1.0-0. It looks like some files have changed, for example, main.inc.php does not exists anymore and it has been replaced by config.inc.php.
After this update It seems something have changed and creating subfolders with domain name to point the domain_base_dn does not work anymore, at least, it's not working in my installation.
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.
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++;
}
it create dinamically the $domain_base_dn based on the $_SERVER["HTTP_HOST"];
http://domain.example.com will become dc=domain,dc=example,dc=com
I think it has some advantages, for example, if I create a new domain in my environment I dont' have to create a new directory in roundcube folder each time. But I'm not sure if it's good to add this kind of code in roundcube config files.
Thanks & Regards.
Manel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/devel/attachments/20131030/0259e502/attachment.html>
More information about the devel
mailing list