Commit f9e17b53 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

remove obsolete tests

parent e9721ffb
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
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
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
#!/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
#######################################################################
# 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
#
# 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
#
# 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
#
# 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"
#
# 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"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment