summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhosted-kolab/04-remove-cn-equals-kolab.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/hosted-kolab/04-remove-cn-equals-kolab.sh b/hosted-kolab/04-remove-cn-equals-kolab.sh
new file mode 100755
index 0000000..51a73cf
--- /dev/null
+++ b/hosted-kolab/04-remove-cn-equals-kolab.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+. ./settings.sh
+
+(
+ echo "associateddomain=${domain},cn=kolab,cn=config"
+ echo "cn=kolab,cn=config"
+) | ldapdelete -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c