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
Commits
14db7d46
Commit
14db7d46
authored
Aug 14, 2021
by
Howard Chu
Browse files
Fix parsing error with back-ldif
parent
4a024d4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/scripts/test022-ppolicy
View file @
14db7d46
...
@@ -103,8 +103,9 @@ if test $COUNT != 2 ; then
...
@@ -103,8 +103,9 @@ if test $COUNT != 2 ; then
exit
1
exit
1
fi
fi
DELAY
=
`
$LDAPSEARCH
-D
"
$MANAGERDN
"
-H
$URI1
-w
$PASSWD
\
DTEXT
=
`
$LDAPSEARCH
-D
"
$MANAGERDN
"
-H
$URI1
-w
$PASSWD
\
-b
"
$USER
"
-E
accountUsability 1.1 |
sed
-n
-e
's/.*seconds_before_unlock=\(\d*\)/\1/p'
`
-b
"
$USER
"
-E
accountUsability 1.1
`
DELAY
=
`
echo
$DTEXT
|
sed
-n
-e
's/.*seconds_before_unlock=\(\d*\)/\1/p'
`
echo
"Waiting
$DELAY
seconds for lockout to reset..."
echo
"Waiting
$DELAY
seconds for lockout to reset..."
sleep
$DELAY
sleep
$DELAY
...
@@ -119,8 +120,9 @@ if test $RC != 0 ; then
...
@@ -119,8 +120,9 @@ if test $RC != 0 ; then
exit
$RC
exit
$RC
fi
fi
DELAY
=
`
$LDAPSEARCH
-D
"
$MANAGERDN
"
-H
$URI1
-w
$PASSWD
\
DTEXT
=
`
$LDAPSEARCH
-D
"
$MANAGERDN
"
-H
$URI1
-w
$PASSWD
\
-b
"
$USER
"
-E
accountUsability 1.1 |
sed
-n
-e
's/.*expire=\(\d*\)/\1/p'
`
-b
"
$USER
"
-E
accountUsability 1.1
`
DELAY
=
`
echo
$DTEXT
|
sed
-n
-e
's/.*expire=\(\d*\)/\1/p'
`
echo
"Testing password expiration"
echo
"Testing password expiration"
echo
"Waiting
$DELAY
seconds for password to expire..."
echo
"Waiting
$DELAY
seconds for password to expire..."
...
@@ -489,8 +491,9 @@ fi
...
@@ -489,8 +491,9 @@ fi
$LDAPSEARCH
-e
ppolicy
-H
$URI1
-D
"
$USER
"
-w
$PASS
\
$LDAPSEARCH
-e
ppolicy
-H
$URI1
-D
"
$USER
"
-w
$PASS
\
-b
"
$BASEDN
"
-s
base
>
$SEARCHOUT
2>&1
-b
"
$BASEDN
"
-s
base
>
$SEARCHOUT
2>&1
DELAY
=
`
$LDAPSEARCH
-D
"
$MANAGERDN
"
-H
$URI1
-w
$PASSWD
\
DTEXT
=
`
$LDAPSEARCH
-D
"
$MANAGERDN
"
-H
$URI1
-w
$PASSWD
\
-b
"
$USER
"
-E
accountUsability 1.1 |
sed
-n
-e
's/.*expire=\(\d*\)/\1/p'
`
-b
"
$USER
"
-E
accountUsability 1.1
`
DELAY
=
`
echo
$DTEXT
|
sed
-n
-e
's/.*expire=\(\d*\)/\1/p'
`
echo
"Waiting
$DELAY
seconds for password to expire..."
echo
"Waiting
$DELAY
seconds for password to expire..."
sleep
$DELAY
sleep
$DELAY
...
@@ -734,8 +737,9 @@ delete: pwdReset
...
@@ -734,8 +737,9 @@ delete: pwdReset
EOMODS
EOMODS
DELAY
=
`
$LDAPSEARCH
-D
"
$MANAGERDN
"
-H
$URI1
-w
$PASSWD
\
DTEXT
=
`
$LDAPSEARCH
-D
"
$MANAGERDN
"
-H
$URI1
-w
$PASSWD
\
-b
"
$USER
"
-E
accountUsability 1.1 |
sed
-n
-e
's/.*expire=\(\d*\)/\1/p'
`
-b
"
$USER
"
-E
accountUsability 1.1
`
DELAY
=
`
echo
$DTEXT
|
sed
-n
-e
's/.*expire=\(\d*\)/\1/p'
`
DELAY
=
`
expr
$DELAY
- 10
`
DELAY
=
`
expr
$DELAY
- 10
`
echo
"Testing password expiration"
echo
"Testing password expiration"
...
...
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