summaryrefslogtreecommitdiff
path: root/hosted-kolab/03-add-management-domain.sh
diff options
context:
space:
mode:
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}"