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