summaryrefslogtreecommitdiff
path: root/hosted-kolab/03-prevent-hosted-kolab-service-account-from-reading-domain.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hosted-kolab/03-prevent-hosted-kolab-service-account-from-reading-domain.sh')
-rwxr-xr-xhosted-kolab/03-prevent-hosted-kolab-service-account-from-reading-domain.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/hosted-kolab/03-prevent-hosted-kolab-service-account-from-reading-domain.sh b/hosted-kolab/03-prevent-hosted-kolab-service-account-from-reading-domain.sh
deleted file mode 100755
index 26856e9..0000000
--- a/hosted-kolab/03-prevent-hosted-kolab-service-account-from-reading-domain.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
- . ./settings.sh
-
-if [ $# -ne 1 ]; then
- domain_to_lock=${domain}
-else
- domain_to_lock=$1
-fi
-
-(
- echo "dn: associateddomain=${domain_to_lock},cn=kolab,cn=config"
- echo "changetype: modify"
- echo "add: aci"
- echo "aci: (targetattr = \"*\") (version 3.0;acl \"Hosted Kolab Services\";deny (read,search)(userdn = \"ldap:///uid=hosted-kolab-service,ou=Special Users,${rootdn}\");)"
- echo ""
-) | ldapmodify -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"
-