mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
ITS#9309 test rejection of redundant ppolicy config
This commit is contained in:
parent
633d40b0ac
commit
827a5577f2
@ -62,6 +62,21 @@ fi
|
|||||||
|
|
||||||
echo /dev/null > $TESTOUT
|
echo /dev/null > $TESTOUT
|
||||||
|
|
||||||
|
echo "Testing redundant ppolicy instance..."
|
||||||
|
$LDAPADD -D cn=config -H $URI1 -y $CONFIGPWF <<EOF >> $TESTOUT 2>&1
|
||||||
|
dn: olcOverlay=ppolicy,olcDatabase={1}$BACKEND,cn=config
|
||||||
|
objectClass: olcOverlayConfig
|
||||||
|
objectClass: olcPPolicyConfig
|
||||||
|
olcOverlay: ppolicy
|
||||||
|
olcPPolicyDefault: cn=duplicate policy,ou=policies,dc=example,dc=com
|
||||||
|
EOF
|
||||||
|
RC=$?
|
||||||
|
if test $RC = 0 ; then
|
||||||
|
echo "ldapadd should have failed ($RC)!"
|
||||||
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
|
exit $RC
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Using ldapadd to populate the database..."
|
echo "Using ldapadd to populate the database..."
|
||||||
# may need "-e relax" for draft 09, but not yet.
|
# may need "-e relax" for draft 09, but not yet.
|
||||||
$LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD < \
|
$LDAPADD -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD < \
|
||||||
|
Loading…
Reference in New Issue
Block a user