From e6fe5efa88a3775a8dc6959f710277090dc2977a Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 6 Jul 2010 19:11:01 -0700 Subject: Allow incorrect user to be deleted Avoid password checks on delete. Bug 5418 --- templates/system/login/user/node.def | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'templates/system/login') diff --git a/templates/system/login/user/node.def b/templates/system/login/user/node.def index 7e56ca0f..3b9b570a 100644 --- a/templates/system/login/user/node.def +++ b/templates/system/login/user/node.def @@ -4,7 +4,8 @@ help: Set user account information syntax:expression: exec "/opt/vyatta/sbin/vyatta_check_username.pl $VAR(@)" -commit:expression: $VAR(authentication/encrypted-password) != "" - || ($VAR(authentication/plaintext-password) != "" - && $VAR(authentication/plaintext-password/@) != "") +commit:expression: $VAR(@) == "" || + $VAR(authentication/encrypted-password) != "" || + ( $VAR(authentication/plaintext-password) != "" && + $VAR(authentication/plaintext-password/@) != "") ; "user password must be specified" -- cgit v1.2.3