summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-01-21 12:57:05 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-01-21 12:57:05 (GMT)
commit89947810f35813654e6c49640b4c9f6e8444a72a (patch)
tree1c43defef024b11d060a75e74915cf563b75db06
parent070c0fd570e8c67ca983ccbe109faa847d1206b4 (diff)
downloadkolab-scripts-89947810f35813654e6c49640b4c9f6e8444a72a.tar.gz
Use way shorter names
-rwxr-xr-xpopulate-ldap/10b-add-vlv-indexes.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/populate-ldap/10b-add-vlv-indexes.sh b/populate-ldap/10b-add-vlv-indexes.sh
index 92fcabc..8629a0a 100755
--- a/populate-ldap/10b-add-vlv-indexes.sh
+++ b/populate-ldap/10b-add-vlv-indexes.sh
@@ -3,20 +3,30 @@
. ./settings.sh
(
- echo "dn: cn=People VLV Index,cn=People VLV Search,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
+ echo "dn: cn=PVI,cn=PVS,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
echo "objectClass: top"
echo "objectClass: vlvIndex"
- echo "cn: People VLV Index"
+ echo "cn: PVI"
echo "vlvSort: displayname sn givenname cn"
echo "aci: (targetattr = \"*\") (version 3.0;acl \"Read Access\";allow (read,compare,search)(userdn = \"ldap:///anyone\");)"
echo ""
) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c
(
- echo "dn: cn=Groups VLV Index,cn=Groups VLV Search,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
+ echo "dn: cn=RVI,cn=RVS,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
echo "objectClass: top"
echo "objectClass: vlvIndex"
- echo "cn: Groups VLV Index"
+ echo "cn: RVI"
+ echo "vlvSort: cn"
+ echo "aci: (targetattr = \"*\") (version 3.0;acl \"Read Access\";allow (read,compare,search)(userdn = \"ldap:///anyone\");)"
+ echo ""
+) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c
+
+(
+ echo "dn: cn=GVI,cn=GVS,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
+ echo "objectClass: top"
+ echo "objectClass: vlvIndex"
+ echo "cn: GVI"
echo "vlvSort: cn"
echo "aci: (targetattr = \"*\") (version 3.0;acl \"Read Access\";allow (read,compare,search)(userdn = \"ldap:///anyone\");)"
echo ""