Disallow using local as username

This commit is contained in:
Christer Warén 2023-12-30 13:18:23 +02:00
parent 813d1cd38a
commit 463588bb31

View File

@ -83,7 +83,7 @@ if [[ $VAULT_STATUS -eq 200 ]]; then
echo "$VAULT_DOMAIN - Login" echo "$VAULT_DOMAIN - Login"
echo "Method: LDAP" echo "Method: LDAP"
if [[ -z $USER || $USER == "root" ]]; then if [[ -z $USER || $USER == "root" || $USER == "local" ]]; then
echo -n "Username: " echo -n "Username: "
read USERNAME read USERNAME
else else