summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-03 13:44:12 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-03 13:44:12 (GMT)
commitd71475a6638061d6980f8282d37887d464191dd5 (patch)
tree48a849acc6e7f75ecbc5e5c315b3bfe374f9e87a
parent97a8c5113cac2e4f31283ff0ab700d27ff849ea5 (diff)
downloadkolab-scripts-d71475a6638061d6980f8282d37887d464191dd5.tar.gz
Add remove cn=kolab script
-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