From f9e17b539a8cbe8ec07cad2d94ce74cdcb866d2b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 11 May 2005 08:39:39 +0000 Subject: [PATCH] remove obsolete tests --- servers/slapd/back-meta/data/meta-1.ldif | 12 --- servers/slapd/back-meta/data/meta-2.ldif | 12 --- servers/slapd/back-meta/data/meta-3.ldif | 13 --- servers/slapd/back-meta/data/setup.sh | 53 ----------- .../slapd/back-meta/data/slapd-ldap-raw.conf | 15 --- .../back-meta/data/slapd-ldap-rewrite.conf | 45 --------- servers/slapd/back-meta/data/slapd-ldbm.conf | 30 ------ .../back-meta/data/slapd-meta-plain.conf | 43 --------- .../back-meta/data/slapd-meta-rewrite.conf | 91 ------------------- 9 files changed, 314 deletions(-) delete mode 100644 servers/slapd/back-meta/data/meta-1.ldif delete mode 100644 servers/slapd/back-meta/data/meta-2.ldif delete mode 100644 servers/slapd/back-meta/data/meta-3.ldif delete mode 100644 servers/slapd/back-meta/data/setup.sh delete mode 100644 servers/slapd/back-meta/data/slapd-ldap-raw.conf delete mode 100644 servers/slapd/back-meta/data/slapd-ldap-rewrite.conf delete mode 100644 servers/slapd/back-meta/data/slapd-ldbm.conf delete mode 100644 servers/slapd/back-meta/data/slapd-meta-plain.conf delete mode 100644 servers/slapd/back-meta/data/slapd-meta-rewrite.conf diff --git a/servers/slapd/back-meta/data/meta-1.ldif b/servers/slapd/back-meta/data/meta-1.ldif deleted file mode 100644 index 23c9b53fd5..0000000000 --- a/servers/slapd/back-meta/data/meta-1.ldif +++ /dev/null @@ -1,12 +0,0 @@ -dn: ou=People,dc=foo,dc=example,dc=com -objectClass: top -objectClass: organizationalUnit -ou: People - -dn: cn=Ando,ou=People,dc=foo,dc=example,dc=com -objectClass: top -objectClass: person -cn: Ando -sn: Ando -userPassword: ando - diff --git a/servers/slapd/back-meta/data/meta-2.ldif b/servers/slapd/back-meta/data/meta-2.ldif deleted file mode 100644 index 5c33b76c5f..0000000000 --- a/servers/slapd/back-meta/data/meta-2.ldif +++ /dev/null @@ -1,12 +0,0 @@ -dn: ou=People,dc=bar,dc=example,dc=com -objectClass: top -objectClass: organizationalUnit -ou: People - -dn: cn=Ando,ou=People,dc=bar,dc=example,dc=com -objectClass: top -objectClass: person -cn: Ando -sn: Ando -userPassword: ando - diff --git a/servers/slapd/back-meta/data/meta-3.ldif b/servers/slapd/back-meta/data/meta-3.ldif deleted file mode 100644 index 7a6668ea83..0000000000 --- a/servers/slapd/back-meta/data/meta-3.ldif +++ /dev/null @@ -1,13 +0,0 @@ -dn: ou=Groups,dc=bar,dc=example,dc=com -objectClass: top -objectClass: organizationalUnit -ou: Groups - -dn: cn=Users,ou=Groups,dc=bar,dc=example,dc=com -objectClass: top -objectClass: groupOfNames -objectClass: simpleSecurityObject -cn: Users -member: cn=Users,ou=Groups,dc=bar,dc=example,dc=com -member: cn=Ando,ou=People,dc=bar,dc=example,dc=com -userPassword: users diff --git a/servers/slapd/back-meta/data/setup.sh b/servers/slapd/back-meta/data/setup.sh deleted file mode 100644 index 178644a55c..0000000000 --- a/servers/slapd/back-meta/data/setup.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -SRCDIR="../../../.." -METADBDIR="./meta-db" -SLAPADD="$SRCDIR/servers/slapd/tools/slapadd -v" - -#ADDCONF="./slapd-meta-plain.conf" -ADDCONF="./slapd-meta-rewrite.conf" -#ADDCONF="./slapd-ldap-rewrite.conf" - -LDAPADDCONF="./slapd-ldap-raw.conf" -CONF="./slapd.conf" -LDAPCONF="./slapd-ldap.conf" -PORT=9876 -#DEBUG=-1 -DEBUG=0 - -rm -rf $METADBDIR -rm -f schema ucdata - -sed "s/@PORT@/$PORT/" $ADDCONF > $CONF -sed "s/@PORT@/$PORT/" $LDAPADDCONF > $LDAPCONF - -ln -s "$SRCDIR/servers/slapd/schema" . -ln -s "$SRCDIR/libraries/liblunicode" ucdata - -for i in 1 2 3 ; do - echo "Feeding directory $i" - mkdir -p "$METADBDIR/$i" - $SLAPADD -f $ADDCONF -n `expr $i + 1` -l meta-$i.ldif -done - -echo "" -echo "After slapd started, try" -echo "" -echo " ldapsearch -x -H ldap://:$PORT/ -b '' -s base namingContexts" -echo "" -echo "and browse the directory using the last base that appears;" -echo "you may also try to bind as administrator of each subdirectory" -echo "or as \"cn=Ando, ...\" with password \"ando\": notice what happens" -echo "to attrs \"sn\" and \"cn\" of some entries based on the ACLs ..." -echo "" - -echo "Starting slapd on port $PORT" -$SRCDIR/servers/slapd/slapd -f $CONF -h "ldap://:$PORT/" -d $DEBUG -echo "Waiting 2 secs for everything to shut down ..." -sleep 2 - -#exit - -rm -rf $METADBDIR -rm -f schema ucdata $CONF $LDAPCONF - diff --git a/servers/slapd/back-meta/data/slapd-ldap-raw.conf b/servers/slapd/back-meta/data/slapd-ldap-raw.conf deleted file mode 100644 index 856412ef18..0000000000 --- a/servers/slapd/back-meta/data/slapd-ldap-raw.conf +++ /dev/null @@ -1,15 +0,0 @@ -####################################################################### -# ldap database with suffix massage definitions -####################################################################### - -database ldap -uri "ldap://localhost:@PORT@/" -suffix "o=FB,c=US" -suffixmassage "o=FB,c=US" "ou=Groups,dc=bar,dc=example,dc=com" -lastmod off - -access to dn.regex="[^,]+,o=FB,c=US" attr=cn - by group.exact="cn=Users,o=FB,c=US" read - by group.exact="cn=Users,ou=Groups,dc=bar,dc=example,dc=com" read - by * none - diff --git a/servers/slapd/back-meta/data/slapd-ldap-rewrite.conf b/servers/slapd/back-meta/data/slapd-ldap-rewrite.conf deleted file mode 100644 index ccee741d4e..0000000000 --- a/servers/slapd/back-meta/data/slapd-ldap-rewrite.conf +++ /dev/null @@ -1,45 +0,0 @@ -# -# master slapd config -- for testing of ldap metadirectory rewrite -# -ucdata-path ./ucdata -include ./schema/core.schema -include ./schema/cosine.schema -include ./schema/inetorgperson.schema -# -schemacheck off -# -pidfile ./meta-db/slapd.pid -argsfile ./meta-db/slapd.args - -access to attr=userPassword - by anonymous auth - by self write - -access to dn.regex="[^,]+,ou=People,dc=[^,]+,o=Foo Bar,c=US" attr=sn - by group.exact="cn=Users,ou=Groups,dc=bar,o=Foo Bar,c=US" read - by * none - -access to dn.regex="[^,]+,ou=Groups,dc=[^,]+,o=Foo Bar,c=US" attr=cn - by group.exact="cn=Users,ou=Groups,dc=bar,o=Foo Bar,c=US" read - by * none - -#access to dn.regex="[^,]+,ou=Groups,dc=[^,]+,o=Foo Bar,c=US" attr=cn -# by dnattr=member read -# by * none - -access to * - by * read - -####################################################################### -# ldap database with suffix massage definitions -####################################################################### - -include ./slapd-ldap.conf - -####################################################################### -# ldbm database definitions -####################################################################### - -include ./slapd-ldbm.conf - - diff --git a/servers/slapd/back-meta/data/slapd-ldbm.conf b/servers/slapd/back-meta/data/slapd-ldbm.conf deleted file mode 100644 index 6b6c17a481..0000000000 --- a/servers/slapd/back-meta/data/slapd-ldbm.conf +++ /dev/null @@ -1,30 +0,0 @@ -# -# slapd config -- for testing of ldap metadirectory -# - -####################################################################### -# ldbm database definitions -####################################################################### - -database ldbm -suffix "ou=People,dc=foo,dc=example,dc=com" -rootdn "cn=Root,ou=People,dc=foo,dc=example,dc=com" -rootpw ldap -directory ./meta-db/1 -lastmod on -index objectClass pres,eq - -database ldbm -suffix "ou=People,dc=bar,dc=example,dc=com" -rootdn "cn=Root,ou=People,dc=bar,dc=example,dc=com" -rootpw ldap -directory ./meta-db/2 -index objectClass pres,eq - -database ldbm -suffix "ou=Groups,dc=bar,dc=example,dc=com" -rootdn "cn=Root,ou=Groups,dc=bar,dc=example,dc=com" -rootpw ldap -directory ./meta-db/3 -index objectClass pres,eq - diff --git a/servers/slapd/back-meta/data/slapd-meta-plain.conf b/servers/slapd/back-meta/data/slapd-meta-plain.conf deleted file mode 100644 index 78b6cd90ee..0000000000 --- a/servers/slapd/back-meta/data/slapd-meta-plain.conf +++ /dev/null @@ -1,43 +0,0 @@ -# -# master slapd config -- for testing of ldap metadirectory -# -ucdata-path ./ucdata -include ./schema/core.schema -include ./schema/cosine.schema -include ./schema/inetorgperson.schema -# -schemacheck off -# -pidfile ./meta-db/slapd.pid -argsfile ./meta-db/slapd.args - -access to attr=userPassword - by anonymous auth - by self write - -access to * - by * read - -####################################################################### -# ldbm database definitions -####################################################################### - -include ./slapd-ldbm.conf - -####################################################################### -# ldap database with suffix massage definitions -####################################################################### - -include ./slapd-ldap.conf - -####################################################################### -# meta database definitions -####################################################################### - -database meta -suffix "dc=example,dc=com" -dncache-ttl forever -uri "ldap://localhost:@PORT@/ou=People,dc=foo,dc=example,dc=com" -uri "ldap://localhost:@PORT@/ou=People,dc=bar,dc=example,dc=com" -uri "ldap://localhost:@PORT@/ou=Groups,dc=bar,dc=example,dc=com" - diff --git a/servers/slapd/back-meta/data/slapd-meta-rewrite.conf b/servers/slapd/back-meta/data/slapd-meta-rewrite.conf deleted file mode 100644 index 0f557f52f6..0000000000 --- a/servers/slapd/back-meta/data/slapd-meta-rewrite.conf +++ /dev/null @@ -1,91 +0,0 @@ -# -# master slapd config -- for testing of ldap metadirectory rewrite -# -ucdata-path ./ucdata -include ./schema/core.schema -include ./schema/cosine.schema -include ./schema/inetorgperson.schema -# -schemacheck off -# -pidfile ./meta-db/slapd.pid -argsfile ./meta-db/slapd.args - -access to attr=userPassword - by anonymous auth - by self write - -access to dn.regex="[^,]+,ou=People,dc=[^,]+,o=Foo Bar,c=US" attr=sn - by group.exact="cn=Users,ou=Groups,dc=bar,o=Foo Bar,c=US" read - by * none - -access to dn.regex="[^,]+,ou=Groups,dc=[^,]+,o=Foo Bar,c=US" attr=cn - by group.exact="cn=Users,ou=Groups,dc=bar,o=Foo Bar,c=US" read - by * none - -#access to dn.regex="[^,]+,ou=Groups,dc=[^,]+,o=Foo Bar,c=US" attr=cn -# by dnattr=member read -# by * none - -access to * - by * read - -####################################################################### -# ldap database with suffix massage definitions -####################################################################### - -include ./slapd-ldap.conf - -####################################################################### -# ldbm database definitions -####################################################################### - -include ./slapd-ldbm.conf - -####################################################################### -# meta database definitions -####################################################################### - -database meta -suffix "o=Foo Bar,c=US" -dncache-ttl forever -lastmod off -rootdn "cn=root,o=Foo Bar,c=US" -rootpw foo - -uri "ldap://localhost:@PORT@/ou=People,dc=foo,o=Foo Bar,c=US" -pseudorootdn "cn=Root,ou=People,dc=foo,dc=example,dc=com" -pseudorootpw ldap -rewriteEngine on -rewriteContext default -rewriteRule "(.*)o=Foo Bar,[ ]?c=US" "%1dc=example,dc=com" -rewriteContext searchResult -rewriteRule "(.*)dc=example,[ ]?dc=com" "%1o=Foo Bar,c=US" -rewriteContext searchAttrDN alias searchResult -rewriteContext searchFilter -rewriteRule "(.*)member=([^)]+),o=Foo Bar,[ ]?c=US(.*)" "%1member=%2,dc=example,dc=com%3" - -uri "ldap://localhost:@PORT@/ou=People,dc=bar,o=Foo Bar,c=US" -pseudorootdn "cn=Root,ou=People,dc=bar,dc=example,dc=com" -pseudorootpw ldap -rewriteEngine on -rewriteContext default -rewriteRule "(.*)o=Foo Bar,[ ]?c=US" "%1dc=example,dc=com" -rewriteContext searchResult -rewriteRule "(.*)dc=example,[ ]?dc=com" "%1o=Foo Bar,c=US" -rewriteContext searchAttrDN alias searchResult -rewriteContext searchFilter -rewriteRule "(.*)member=([^)]+),o=Foo Bar,[ ]?c=US(.*)" "%1member=%2,dc=example,dc=com%3" -default-target -map attribute givenName sn - -uri "ldap://localhost:@PORT@/ou=Groups,dc=bar,o=Foo Bar,c=US" -rewriteEngine on -rewriteContext default -rewriteRule "(.*)o=Foo Bar,[ ]?c=US" "%1dc=example,dc=com" -rewriteContext searchResult -rewriteRule "(.*)dc=example,[ ]?dc=com" "%1o=Foo Bar,c=US" -rewriteContext searchAttrDN alias searchResult -rewriteContext searchFilter -rewriteRule "(.*)member=([^)]+),o=Foo Bar,[ ]?c=US(.*)" "%1member=%2,dc=example,dc=com%3" - -- 2.39.5