summaryrefslogtreecommitdiff
path: root/hosted-kolab/02-add-ou-Domains.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hosted-kolab/02-add-ou-Domains.sh')
-rwxr-xr-xhosted-kolab/02-add-ou-Domains.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/hosted-kolab/02-add-ou-Domains.sh b/hosted-kolab/02-add-ou-Domains.sh
new file mode 100755
index 0000000..e29dde9
--- /dev/null
+++ b/hosted-kolab/02-add-ou-Domains.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+ . ./settings.sh
+(
+ echo "dn: ou=Domains,${rootdn}"
+ echo "aci: (targetattr = \"*\") (version 3.0;acl \"Kolab Services\";allow (read,compare,search)(userdn = \"ldap:///uid=kolab-service,ou=Special Users,${rootdn}\");)"
+ echo "ou: Domains"
+ echo "objectClass: top"
+ echo "objectClass: organizationalunit"
+ echo ""
+) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"