## <http://www.OpenLDAP.org/license.html>.
# allow big PDUs from anonymous (for testing purposes)
-sockbuf_max_incoming 4194303
+sockbuf_max_incoming_client 4194303
+sockbuf_max_incoming_upstream 4194303
backend uri=@URI2@
numconns=3
## <http://www.OpenLDAP.org/license.html>.
# allow big PDUs from anonymous (for testing purposes)
-sockbuf_max_incoming 4194303
+sockbuf_max_incoming_client 4194303
+sockbuf_max_incoming_upstream 4194303
-# incorrect password
-backend uri=@URI2@
+bindconf
bindmethod=simple
binddn="cn=Manager,dc=example,dc=com"
- credentials=wrong
+ credentials=secret
+
+# incorrect password (DB is empty)
+backend uri=@URI2@
numconns=3
bindconns=2
retry=500
# backend is often unresponsive
backend uri=@URI3@
- bindmethod=simple
- binddn="cn=Manager,dc=example,dc=com"
- credentials=secret
numconns=3
bindconns=2
retry=500
# unreachable backend (not running)
backend uri=@URI4@
- bindmethod=simple
- binddn="cn=Manager,dc=example,dc=com"
- credentials=wrong
numconns=3
bindconns=2
retry=500
# backend that fails to resolve
backend uri=ldap://does.not.resolve.example.com
- bindmethod=simple
- binddn="cn=Manager,dc=example,dc=com"
- credentials=secret
numconns=3
bindconns=2
retry=500
## <http://www.OpenLDAP.org/license.html>.
# allow big PDUs from anonymous (for testing purposes)
-sockbuf_max_incoming 4194303
+sockbuf_max_incoming_client 4194303
+sockbuf_max_incoming_upstream 4194303
feature proxyauthz
-backend uri=@URI2@
+bindconf
bindmethod=simple
binddn="cn=Manager,dc=example,dc=com"
credentials=secret
+
+backend uri=@URI2@
numconns=3
bindconns=2
retry=5000
conn-max-pending=3
backend uri=@URI3@
- bindmethod=simple
- binddn="cn=Manager,dc=example,dc=com"
- credentials=secret
numconns=3
bindconns=2
retry=5000
conn-max-pending=3
backend uri=@URI4@
- bindmethod=simple
- binddn="cn=Manager,dc=example,dc=com"
- credentials=secret
numconns=3
bindconns=2
retry=5000
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
-mkdir -p $TESTDIR $DBDIR1
+mkdir -p $TESTDIR $DBDIR1 $DBDIR2 $DBDIR3
echo "Starting slapd on TCP/IP port $PORT2..."
. $CONFFILTER $BACKEND < $SCHEMACONF > $CONF2
KILLPIDS="$PID"
echo "Starting a second slapd on TCP/IP port $PORT3..."
-. $CONFFILTER $BACKEND < $SCHEMACONF > $CONF3
+sed -e "s,$DBDIR1,$DBDIR2," < $CONF2 > $CONF3
$SLAPD -f $CONF3 -h $URI3 -d $LVL > $LOG3 2>&1 &
PID=$!
if test $WAIT != 0 ; then
KILLPIDS="$KILLPIDS $PID"
echo "Starting a third slapd on TCP/IP port $PORT4..."
-. $CONFFILTER $BACKEND < $SCHEMACONF > $CONF4
+sed -e "s,$DBDIR1,$DBDIR3," < $CONF2 > $CONF4
$SLAPD -f $CONF4 -h $URI4 -d $LVL > $LOG4 2>&1 &
PID=$!
if test $WAIT != 0 ; then