mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-09 08:16:58 +08:00
committed by
Nikos Mavrogiannopoulos
parent
fd8d87e8e6
commit
f10c5bc73e
@@ -51,6 +51,19 @@ if test $? != 0;then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Double locking user... "
|
||||
$OCPASSWD -c passwd.out -l test
|
||||
if test $? != 0;then
|
||||
echo "Failed double locking user test"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
grep ':!!\$' passwd.out >/dev/null 2>&1
|
||||
if test $? = 0;then
|
||||
echo "Failed double locking user test. double exclamation marks were found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Deleting user... "
|
||||
$OCPASSWD -c passwd.out -d test
|
||||
if test $? != 0;then
|
||||
|
||||
Reference in New Issue
Block a user