[Kolab-devel] roundcube 1.0-0.16 multidomain kolab 3.1
Manel Gimeno Zaragozá
magiza83 at hotmail.com
Tue Oct 29 09:52:03 CET 2013
Hello,
Waiting for some response about how to solve the problem accessing roundcube under multidomain installation, I've made the following modification to "simulate" the behaviour I'm looking for.
I've added the following code at the beginning of config.inc.php and kolab_auth.inc.php
$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++;
}
this provides me the $domain_base_dn I'm looking for depending on the "HTTP_HOST".
Do you think this kind of code is not correct to have inside these files?
Thanks & Regards.
Manel
From: magiza83 at hotmail.com
To: kolab-devel at kolab.org
Date: Mon, 28 Oct 2013 09:38:26 +0100
Subject: [Kolab-devel] roundcube 1.0-0.16 multidomain kolab 3.1
Hello,
I've installed last development version with packages:
roundcubemail-plugins-kolab-3.1.5-2.el6.kolab_3.1.noarch
roundcubemail-1.0-0.16.dev20131016.git26830d.el6.kolab_3.1.noarch
and I'm not able to run a hosted domain solution with this version. I've followed two kolab 3.0 guides trying to adapt it for kolab 3.1 changes
http://docs.kolab.org/es-ES/Kolab_Groupware/3.0/html/Administrator_Guide/chap-Administrator_Guide-Hosted_Kolab_Groupware_Setup.html
http://bmts.us/wiki/article:kolab:multidomain
the changes made are:
In roundcube directory, create directories with hosted hostname name
create files config.inc.php and kolab_auth.inc.php inside new directories:<?php $domain_base_dn='dc=example,dc=domain,dc=es';
edit config.inc.php and kolab_auth.inc.php and replace domains to point: $domain_base_dnadd domain config in /etc/kolab/kolab.conf
NOTE: it looks like it not necessary change RCMAIL_CONFIG_DIR for RCUBE_CONFIG_DIR.
Any help about how to configure it correctly?
Thanks
Manel
_______________________________________________
devel mailing list
devel at lists.kolab.org
https://lists.kolab.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/devel/attachments/20131029/d4f32241/attachment.html>
More information about the devel
mailing list