Commit eeb10615 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#9309 test rejection of redundant ppolicy config

parent 3dc2920f
......@@ -60,6 +60,21 @@ fi
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
if test $RC = 0 ; then
echo "ldapadd should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
echo "Using ldapadd to populate the database..."
# may need "-e relax" for draft 09, but not yet.
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