summaryrefslogtreecommitdiff
path: root/populate-ldap/10c-run-vlv-index-tasks.sh
diff options
context:
space:
mode:
Diffstat (limited to 'populate-ldap/10c-run-vlv-index-tasks.sh')
-rwxr-xr-xpopulate-ldap/10c-run-vlv-index-tasks.sh51
1 files changed, 43 insertions, 8 deletions
diff --git a/populate-ldap/10c-run-vlv-index-tasks.sh b/populate-ldap/10c-run-vlv-index-tasks.sh
index 31fd2ca..7a971a8 100755
--- a/populate-ldap/10c-run-vlv-index-tasks.sh
+++ b/populate-ldap/10c-run-vlv-index-tasks.sh
@@ -3,12 +3,12 @@
. ./settings.sh
(
- echo "dn: cn=${domain_db} People VLV Index,cn=index,cn=tasks,cn=config"
+ echo "dn: cn=PVI,cn=index,cn=tasks,cn=config"
echo "objectclass: top"
echo "objectclass: extensibleObject"
- echo "cn: ${domain_db} People VLV Index"
+ echo "cn: PVI"
echo "nsinstance: ${domain_db}"
- echo "nsIndexVLVAttribute: People VLV Index"
+ echo "nsIndexVLVAttribute: PVI"
echo ""
) | ldapmodify -a -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c
@@ -23,7 +23,7 @@ while [ ${ldap_complete} -ne 1 ]; do
-w "${ldap_bindpw}" \
-c \
-LLL \
- -b "cn=${domain_db} People VLV Index,cn=index,cn=tasks,cn=config" \
+ -b "cn=PVI,cn=index,cn=tasks,cn=config" \
-s base 2>/dev/null
)
if [ -z "$result" ]; then
@@ -36,12 +36,12 @@ while [ ${ldap_complete} -ne 1 ]; do
done
(
- echo "dn: cn=${domain_db} Groups VLV Index,cn=index,cn=tasks,cn=config"
+ echo "dn: cn=RVI,cn=index,cn=tasks,cn=config"
echo "objectclass: top"
echo "objectclass: extensibleObject"
- echo "cn: ${domain_db} Groups VLV Index"
+ echo "cn: RVI"
echo "nsinstance: ${domain_db}"
- echo "nsIndexVLVAttribute: Groups VLV Index"
+ echo "nsIndexVLVAttribute: RVI"
echo ""
) | ldapmodify -a -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c
@@ -56,7 +56,42 @@ while [ ${ldap_complete} -ne 1 ]; do
-w "${ldap_bindpw}" \
-c \
-LLL \
- -b "cn=${domain_db} Groups VLV Index,cn=index,cn=tasks,cn=config" \
+ -b "cn=RVI,cn=index,cn=tasks,cn=config" \
+ -s base 2>/dev/null
+ )
+ if [ -z "$result" ]; then
+ ldap_complete=1
+ echo ""
+ else
+ echo -n "."
+ sleep 1
+ fi
+done
+
+
+
+(
+ echo "dn: cn=GVI,cn=index,cn=tasks,cn=config"
+ echo "objectclass: top"
+ echo "objectclass: extensibleObject"
+ echo "cn: GVI"
+ echo "nsinstance: ${domain_db}"
+ echo "nsIndexVLVAttribute: GVI"
+ echo ""
+) | ldapmodify -a -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c
+
+ldap_complete=0
+
+while [ ${ldap_complete} -ne 1 ]; do
+ result=$(
+ ldapsearch \
+ -x \
+ -h ${ldap_host} \
+ -D "${ldap_binddn}" \
+ -w "${ldap_bindpw}" \
+ -c \
+ -LLL \
+ -b "cn=GVI,cn=index,cn=tasks,cn=config" \
-s base 2>/dev/null
)
if [ -z "$result" ]; then