summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-01-21 12:56:37 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2015-01-21 12:56:37 (GMT)
commit070c0fd570e8c67ca983ccbe109faa847d1206b4 (patch)
tree9b427a8f2cae92ef1122eed27d084ec69460e54d
parentae9c40869c9ddd0312e85505ac6f967684fadf72 (diff)
downloadkolab-scripts-070c0fd570e8c67ca983ccbe109faa847d1206b4.tar.gz
Use way shorter names
-rwxr-xr-xpopulate-ldap/10a-add-vlv-searches.sh28
1 files changed, 20 insertions, 8 deletions
diff --git a/populate-ldap/10a-add-vlv-searches.sh b/populate-ldap/10a-add-vlv-searches.sh
index 96f5752..28614c3 100755
--- a/populate-ldap/10a-add-vlv-searches.sh
+++ b/populate-ldap/10a-add-vlv-searches.sh
@@ -3,25 +3,37 @@
. ./settings.sh
(
- echo "dn: cn=People VLV Search,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
+ echo "dn: cn=PVS,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
echo "objectClass: top"
echo "objectClass: vlvSearch"
- echo "cn: People VLV Search"
- echo "vlvBase: ou=People,${rootdn}"
+ echo "cn: PVS"
+ echo "vlvBase: ${rootdn}"
echo "vlvScope: 2"
- echo "vlvFilter: (objectclass=inetorgperson)"
+ echo "vlvFilter: (&(entrydn=ou=People,*)(objectclass=inetorgperson)(!(objectclass=nstombstone)))"
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 Search,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
+ echo "dn: cn=RVS,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
echo "objectClass: top"
echo "objectClass: vlvSearch"
- echo "cn: Groups VLV Search"
- echo "vlvBase: ou=Groups,${rootdn}"
+ echo "cn: RVS"
+ echo "vlvBase: ${rootdn}"
echo "vlvScope: 2"
- echo "vlvFilter: (|(objectclass=groupofuniquenames)(objectclass=groupofurls))"
+ echo "vlvFilter: (&(entrydn=ou=Resources,*)(|(&(objectclass=kolabsharedfolder)(kolabfoldertype=event)(mail=*))(objectclass=groupofuniquenames)(objectclass=groupofurls))(!(objectclass=nstombstone)))"
+ 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=GVS,cn=${domain_db},cn=ldbm database,cn=plugins,cn=config"
+ echo "objectClass: top"
+ echo "objectClass: vlvSearch"
+ echo "cn: GVS"
+ echo "vlvBase: ${rootdn}"
+ echo "vlvScope: 2"
+ echo "vlvFilter: (&(|(objectclass=groupofuniquenames)(objectclass=groupofurls))(!(objectclass=nstombstone)))"
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