Commit 3840353d authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Support back-null

parent 7c9e4df7
...@@ -61,6 +61,7 @@ database @BACKEND@ ...@@ -61,6 +61,7 @@ database @BACKEND@
suffix "dc=example,dc=com" suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com" rootdn "cn=Manager,dc=example,dc=com"
rootpw secret rootpw secret
#null#bind on
#~null~#directory @TESTDIR@/db.1.a #~null~#directory @TESTDIR@/db.1.a
#bdb#index objectClass eq #bdb#index objectClass eq
#bdb#index cn,sn,uid pres,eq,sub #bdb#index cn,sn,uid pres,eq,sub
......
...@@ -106,7 +106,7 @@ AUTHZID="u:it/jaj" ...@@ -106,7 +106,7 @@ AUTHZID="u:it/jaj"
echo "Testing ldapwhoami as proxy US, $AUTHZID..." echo "Testing ldapwhoami as proxy US, $AUTHZID..."
$LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "cn=proxy US,ou=Admin,dc=example,dc=com" -w proxy -e\!"authzid=$AUTHZID" $LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "cn=proxy US,ou=Admin,dc=example,dc=com" -w proxy -e\!"authzid=$AUTHZID"
RC=$? RC=$?
if test $RC != 0 ; then if test $RC != 0 && test $BACKEND != null ; then
echo "ldapwhoami failed ($RC)!" echo "ldapwhoami failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC exit $RC
...@@ -165,7 +165,7 @@ AUTHZID="dn:cn=Sandbox,ou=Admin,dc=example,dc=com" ...@@ -165,7 +165,7 @@ AUTHZID="dn:cn=Sandbox,ou=Admin,dc=example,dc=com"
echo "Testing ldapwhoami as proxy IT, $AUTHZID..." echo "Testing ldapwhoami as proxy IT, $AUTHZID..."
$LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "cn=proxy IT,ou=Admin,dc=example,dc=com" -w proxy -e\!"authzid=$AUTHZID" $LDAPWHOAMI -h $LOCALHOST -p $PORT1 -D "cn=proxy IT,ou=Admin,dc=example,dc=com" -w proxy -e\!"authzid=$AUTHZID"
RC=$? RC=$?
if test $RC != 0 ; then if test $RC != 0 && test $BACKEND != null ; then
echo "ldapwhoami failed ($RC)!" echo "ldapwhoami failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC exit $RC
...@@ -198,7 +198,7 @@ $LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASE" \ ...@@ -198,7 +198,7 @@ $LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "$BASE" \
-D "$ID" -w jaj > $SEARCHOUT 2>&1 -D "$ID" -w jaj > $SEARCHOUT 2>&1
RC=$? RC=$?
if test $RC != 0 ; then if test $RC != 0 && test $BACKEND != null ; then
echo "ldapsearch failed ($RC)!" echo "ldapsearch failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC exit $RC
......
Markdown is supported
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