summaryrefslogtreecommitdiff
path: root/hosted-kolab/03-add-management-domain.sh
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-03 13:34:38 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-03 13:38:39 (GMT)
commit97a8c5113cac2e4f31283ff0ab700d27ff849ea5 (patch)
treeac5ecb16176721bd02056a78d97d4da41ebc0a24 /hosted-kolab/03-add-management-domain.sh
parentcb0f7260b039616953fdf21d22e9516a7afb3485 (diff)
downloadkolab-scripts-97a8c5113cac2e4f31283ff0ab700d27ff849ea5.tar.gz
Adjust our hosted setup scripts
Diffstat (limited to 'hosted-kolab/03-add-management-domain.sh')
-rwxr-xr-xhosted-kolab/03-add-management-domain.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/hosted-kolab/03-add-management-domain.sh b/hosted-kolab/03-add-management-domain.sh
new file mode 100755
index 0000000..98184bb
--- /dev/null
+++ b/hosted-kolab/03-add-management-domain.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+ . ./settings.sh
+(
+ echo "dn: associateddomain=${domain},${domain_base_dn}"
+ echo "aci: (targetattr = \"*\")(version 3.0;acl \"Deny Rest\";deny (all)(userdn != \"ldap:///uid=kolab-service,ou=Special Users,${rootdn} || ldap:///${rootdn}??sub?(objectclass=*)\");)"
+ echo "aci: (targetattr = \"*\")(version 3.0;acl \"Deny Hosted Kolab\";deny (all)(userdn = \"ldap:///uid=hosted-kolab-service,ou=Special Users,${rootdn}\");)"
+ echo "inetDomainStatus: active"
+ echo "objectClass: top"
+ echo "objectClass: domainrelatedobject"
+ echo "objectClass: inetdomain"
+ echo "associatedDomain: ${domain}"
+ echo ""
+) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"