summaryrefslogtreecommitdiff
path: root/hosted-kolab/05-add-management-domain.sh
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-08-15 06:23:07 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-08-15 06:23:07 (GMT)
commite4e1623b078f91076817e6ad897430e2c810ae9d (patch)
tree100f1018c01221ccd02af8880b5d904fe4022a02 /hosted-kolab/05-add-management-domain.sh
parent35441cef3d3254a72168935b8ce66420ff72b56f (diff)
downloadkolab-scripts-e4e1623b078f91076817e6ad897430e2c810ae9d.tar.gz
Replace hosted-kolab scripts with the versions for ticket 4459dev/4459
Diffstat (limited to 'hosted-kolab/05-add-management-domain.sh')
-rwxr-xr-xhosted-kolab/05-add-management-domain.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/hosted-kolab/05-add-management-domain.sh b/hosted-kolab/05-add-management-domain.sh
new file mode 100755
index 0000000..16efa77
--- /dev/null
+++ b/hosted-kolab/05-add-management-domain.sh
@@ -0,0 +1,15 @@
+#!/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 "inetDomainBaseDN: dc=example,dc=org"
+ echo "objectClass: top"
+ echo "objectClass: domainrelatedobject"
+ echo "objectClass: inetdomain"
+ echo "associatedDomain: ${domain}"
+ echo ""
+) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"