new domains without changes to /etc/kolab/kolab.conf OR "pure" LDAP-only administration
Christian Tardif
christian.tardif at servinfo.ca
Wed Nov 13 05:16:06 CET 2013
Sorry, but there are errors again in the scripts....
If you try to apply the initTBitsISP.sh script after the
initMultiDomain.sh, the patches won't be downloaded (as the patches
directory already exists), so the patches won't be applied, if you
haven't downloaded them manually. So attached is the modified script to
get rid of this problem. I also added the downloading of the two php
files requested at the end of the script.
Cheers !
Christian...
On 2013-11-08 07:25, Timotheus Pokorra wrote:
> Hello,
>
> I have now updated the script again:
> https://github.com/tpokorra/kolab3_tbits_scripts/blob/master/kolab3.1/initMultiDomain.sh
> I have added folder names from config file, and the sleep time for
> creation of new domains from config file.
>
> I have removed all patches that are not directly related to or needed
> for multi domain operation, and there is now the script
> https://github.com/tpokorra/kolab3_tbits_scripts/blob/master/kolab3.1/initTBitsISP.sh
> which applies the patches related to host several domains for several
> customers (aka ISP Patches).
> I will document that separately in a new email thread later today.
>
> hope this makes sense,
> Timotheus
> _______________________________________________
> users mailing list
> users at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/users
-------------- next part --------------
#!/bin/bash
#####################################################################################
# apply a couple of patches, see related kolab bugzilla number in filename, eg. https://issues.kolab.org/show_bug.cgi?id=2018
#####################################################################################
yum -y install wget patch
mkdir -p patches
echo Downloading patch patchMultiDomainAdminsBug2018.patch...
wget https://raw.github.com/tpokorra/kolab3_tbits_scripts/master/kolab3.1/patches/patchMultiDomainAdminsBug2018.patch -O patches/patchMultiDomainAdminsBug2018.patch
echo Downloading patch domainquotaBug2046.patch...
wget https://raw.github.com/tpokorra/kolab3_tbits_scripts/master/kolab3.1/patches/domainquotaBug2046.patch -O patches/domainquotaBug2046.patch
echo Downloading patch checkboxLDAPBug2452.patch...
wget https://raw.github.com/tpokorra/kolab3_tbits_scripts/master/kolab3.1/patches/checkboxLDAPBug2452.patch -O patches/checkboxLDAPBug2452.patch
echo Downloading patch patchDomainAdminAccountLimitations.patch...
wget https://raw.github.com/tpokorra/kolab3_tbits_scripts/master/kolab3.1/patches/patchDomainAdminAccountLimitations.patch -O patches/patchDomainAdminAccountLimitations.patch
echo Downloading file initDomainAdminType.php...
wget https://raw.github.com/tpokorra/kolab3_tbits_scripts/master/kolab3.1/initDomainAdminType.php -O patches/initDomainAdminType.php
echo Downloading file initDomainAdminManagementDomain.php...
wget https://raw.github.com/tpokorra/kolab3_tbits_scripts/master/kolab3.1/initDomainAdminManagementDomain.php -O patches/initDomainAdminManagementDomain.php
patch -p1 -i `pwd`/patches/patchMultiDomainAdminsBug2018.patch -d /usr/share/kolab-webadmin
patch -p1 -i `pwd`/patches/domainquotaBug2046.patch -d /usr/share/kolab-webadmin
patch -p1 -i `pwd`/patches/checkboxLDAPBug2452.patch -d /usr/share/kolab-webadmin
patch -p1 -i `pwd`/patches/patchDomainAdminAccountLimitations.patch -d /usr/share/kolab-webadmin
#####################################################################################
#using specific ldap attribute for the domainadmin overall quota
#####################################################################################
sed -r -i -e "s/\[kolab\]/[kolab]\ndomainadmin_quota_attribute = tbitskolaboverallquota/g" /etc/kolab/kolab.conf
#####################################################################################
#disable LDAP debugging
#####################################################################################
sed -r -i -e 's/config_set\("debug", true\)/config_set("debug", false)/g' /usr/share/kolab-webadmin/lib/Auth/LDAP.php
#####################################################################################
#create new user_type domainadmin
#####################################################################################
php `pwd`/patches/initDomainAdminType.php
#####################################################################################
#set the domain for management of the domain admins
#####################################################################################
sed -r -i -e "s/\[kolab\]/[kolab]\ndomainadmins_management_domain = administrators.org/g" /etc/kolab/kolab.conf
php `pwd`/patches/initDomainAdminManagementDomain.php
More information about the users
mailing list