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

Timotheus Pokorra timotheus at pokorra.de
Wed Oct 30 09:09:02 CET 2013


Hello Manel,
yes, roundcube authentication has changed in Kolab 3.1.
Please see https://github.com/tpokorra/kolab3_tbits_scripts/blob/master/kolab3.1/initMultiDomain.sh#L54:

#####################################################################################
#kolab_auth conf roundcube; see
https://git.kolab.org/roundcubemail-plugins-kolab/commit/?id=1778b5ec70156f064fdda61c817c678001406996
#####################################################################################
sed -r -i -e "s#=> 389,#=> 389,\n        'domain_base_dn'
=> 'cn=kolab,cn=config',\n        'domain_filter'             =>
'(\&(objectclass=domainrelatedobject)(associateddomain=%s))',\n
'domain_name_attr'          => 'associateddomain',#g"
/etc/roundcubemail/kolab_auth.inc.php
sed -r -i -e "s#'ou=People,.*'#'ou=People,%dc'#g"
/etc/roundcubemail/kolab_auth.inc.php
sed -r -i -e "s#'ou=Groups,.*'#'ou=Groups,%dc'#g"
/etc/roundcubemail/kolab_auth.inc.php

Timotheus

On 30 October 2013 09:05, Manel Gimeno Zaragozá <magiza83 at hotmail.com> wrote:
>>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.
>
>
> _______________________________________________
> devel mailing list
> devel at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/devel


More information about the devel mailing list