summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-01-21 12:59:42 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-01-21 12:59:42 (GMT)
commit51138d19568e5a6305294ddc43d2c70d493a5158 (patch)
tree4e2de23ef4f59d61575a752c2fea39699951bc35
parent94b06ae740812f748761e8589c7678269f004ed9 (diff)
downloadkolab-scripts-51138d19568e5a6305294ddc43d2c70d493a5158.tar.gz
Add VLV index and search removal scripts
-rwxr-xr-xpopulate-ldap/98a-remove-vlv-indexes.sh10
-rwxr-xr-xpopulate-ldap/98b-remove-vlv-searches.sh10
2 files changed, 20 insertions, 0 deletions
diff --git a/populate-ldap/98a-remove-vlv-indexes.sh b/populate-ldap/98a-remove-vlv-indexes.sh
new file mode 100755
index 0000000..5ed00e9
--- /dev/null
+++ b/populate-ldap/98a-remove-vlv-indexes.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+ . ./settings.sh
+
+(
+ echo "cn=GVI,cn=GVS,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
+ echo "cn=PVI,cn=PVS,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
+ echo "cn=RVI,cn=RVS,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
+) | ldapdelete -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c
+
diff --git a/populate-ldap/98b-remove-vlv-searches.sh b/populate-ldap/98b-remove-vlv-searches.sh
new file mode 100755
index 0000000..818deb2
--- /dev/null
+++ b/populate-ldap/98b-remove-vlv-searches.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+ . ./settings.sh
+
+(
+ echo "cn=GVS,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
+ echo "cn=PVS,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
+ echo "cn=RVS,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
+) | ldapdelete -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c
+