diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-06 19:11:01 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-06 19:12:57 -0700 |
commit | e6fe5efa88a3775a8dc6959f710277090dc2977a (patch) | |
tree | f9fe103f0a4e9185e23a0b7944d88dc3e1e7eb7b /templates/system | |
parent | df4a29dcf842f75d9c62a81f171fc8413198de76 (diff) | |
download | vyatta-cfg-system-e6fe5efa88a3775a8dc6959f710277090dc2977a.tar.gz vyatta-cfg-system-e6fe5efa88a3775a8dc6959f710277090dc2977a.zip |
Allow incorrect user to be deleted
Avoid password checks on delete.
Bug 5418
Diffstat (limited to 'templates/system')
-rw-r--r-- | templates/system/login/user/node.def | 7 |
1 files changed, 4 insertions, 3 deletions
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" |