Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
827a5577
Commit
827a5577
authored
Aug 10, 2020
by
Howard Chu
Browse files
ITS
#9309
test rejection of redundant ppolicy config
parent
633d40b0
Pipeline
#686
passed with stage
in 31 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/scripts/test022-ppolicy
View file @
827a5577
...
...
@@ -62,6 +62,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
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..."
# may need "-e relax" for draft 09, but not yet.
$LDAPADD
-D
"
$MANAGERDN
"
-h
$LOCALHOST
-p
$PORT1
-w
$PASSWD
<
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment