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
Ondřej Kuzník
OpenLDAP
Commits
a7381bf6
Commit
a7381bf6
authored
May 16, 2022
by
Ondřej Kuzník
Browse files
ITS#9848 Fix test022 when not running chaining part of the test
parent
205e2f1a
Pipeline
#4332
passed with stage
in 47 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/scripts/test022-ppolicy
View file @
a7381bf6
...
...
@@ -568,12 +568,12 @@ mkdir $DBDIR2
sed
-e
"s,
$DBDIR1
,
$DBDIR2
,"
<
$CONF1
>
$CONF2
echo
"Starting slapd consumer on TCP/IP port
$PORT2
..."
$SLAPD
-f
$CONF2
-h
$URI2
-d
$LVL
>
$LOG2
2>&1 &
PID
=
$!
CONSUMER
PID
=
$!
if
test
$WAIT
!=
0
;
then
echo
PID
$PID
echo
CONSUMER
PID
$PID
read
foo
fi
KILLPIDS
=
"
$KILLPIDS
$PID
"
KILLPIDS
=
"
$KILLPIDS
$
CONSUMER
PID
"
echo
"Configuring syncprov on provider..."
if
[
"
$SYNCPROV
"
=
syncprovmod
]
;
then
...
...
@@ -758,6 +758,8 @@ if test $RC != 6 ; then
exit
1
fi
# URI2 is not running unless we performed chaining test above
if
test
-n
"
$CONSUMERPID
"
;
then
$LDAPMODIFY
-v
-D
cn
=
config
-H
$URI2
-y
$CONFIGPWF
>>
\
$TESTOUT
2>&1
<<
EOMODS
dn: olcOverlay={0}ppolicy,olcDatabase={1}
$BACKEND
,cn=config
...
...
@@ -783,6 +785,7 @@ if test $RC != 6 ; then
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
exit
1
fi
fi
OLDPASS
=
$PASS
PASS
=
newpass
...
...
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