summaryrefslogtreecommitdiff
path: root/hosted-kolab/09-allow-add-users-by-hosted-kolab-service-account.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hosted-kolab/09-allow-add-users-by-hosted-kolab-service-account.sh')
-rwxr-xr-xhosted-kolab/09-allow-add-users-by-hosted-kolab-service-account.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/hosted-kolab/09-allow-add-users-by-hosted-kolab-service-account.sh b/hosted-kolab/09-allow-add-users-by-hosted-kolab-service-account.sh
new file mode 100755
index 0000000..0cfad05
--- /dev/null
+++ b/hosted-kolab/09-allow-add-users-by-hosted-kolab-service-account.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+ . ./settings.sh
+
+(
+ echo "dn: ou=People,${hosted_domain_rootdn}"
+ echo "changetype: modify"
+ echo "add: aci"
+ echo "aci: (targetattr = \"*\") (version 3.0;acl \"Hosted Kolab Services\";allow (all)(userdn = \"ldap:///uid=hosted-kolab-service,ou=Special Users,${rootdn}\");)"
+ echo ""
+) | ldapmodify -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"