summaryrefslogtreecommitdiff
path: root/hosted-kolab/02-add-ou-Domains.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/02-add-ou-Domains.sh
parentcb0f7260b039616953fdf21d22e9516a7afb3485 (diff)
downloadkolab-scripts-97a8c5113cac2e4f31283ff0ab700d27ff849ea5.tar.gz
Adjust our hosted setup scripts
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}"