summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlex Harpin <development@landsofshadow.co.uk>2015-06-13 12:42:59 +0100
committerAlex Harpin <development@landsofshadow.co.uk>2015-06-13 12:42:59 +0100
commitf67f3fbe6a0da06db327647fe0aacafaad18e601 (patch)
tree6020a2c9150465463da0d210dcbab24f8f792b4f /templates
parentfad9235ce9a2297b847984de69952d05eca393da (diff)
downloadvyatta-cfg-system-f67f3fbe6a0da06db327647fe0aacafaad18e601.tar.gz
vyatta-cfg-system-f67f3fbe6a0da06db327647fe0aacafaad18e601.zip
vyatta-cfg-system: 'delete system login user' doesn't remove the user
Following the fix for bug #336 that prevents the deletion of the encrypted password, which resulted in a broken config node on reboot, it was no longer possible to delete users. This reverts the fix for that bug. Bug #557 http://bugzilla.vyos.net/show_bug.cgi?id=557
Diffstat (limited to 'templates')
-rw-r--r--templates/system/login/user/node.tag/authentication/encrypted-password/node.def4
-rw-r--r--templates/system/login/user/node.tag/authentication/plaintext-password/node.def2
2 files changed, 0 insertions, 6 deletions
diff --git a/templates/system/login/user/node.tag/authentication/encrypted-password/node.def b/templates/system/login/user/node.tag/authentication/encrypted-password/node.def
index e0fb4132..29ad14a8 100644
--- a/templates/system/login/user/node.tag/authentication/encrypted-password/node.def
+++ b/templates/system/login/user/node.tag/authentication/encrypted-password/node.def
@@ -9,7 +9,3 @@ syntax:expression: ($VAR(@) == "*" || $VAR(@) == "!" \
|| ( pattern $VAR(@) "^\\$5\\$[a-zA-Z0-9\./]*\\$[a-zA-Z0-9\./]{43}$" ) \
|| ( pattern $VAR(@) "^\\$6\\$[a-zA-Z0-9\./]*\\$[a-zA-Z0-9\./]{86}$" )) \
; "Not a valid encrypted password for user $VAR(../../@)"
-
-# Deleting the encrypted password set it to "!" to disable password
-# access for this account, SSH RSA key login will still work.
-delete:expression: $VAR(@) = "!" \ No newline at end of file
diff --git a/templates/system/login/user/node.tag/authentication/plaintext-password/node.def b/templates/system/login/user/node.tag/authentication/plaintext-password/node.def
index 87210453..407f49b5 100644
--- a/templates/system/login/user/node.tag/authentication/plaintext-password/node.def
+++ b/templates/system/login/user/node.tag/authentication/plaintext-password/node.def
@@ -7,5 +7,3 @@ update:expression: $VAR(@) == "" \
|| ($VAR(../encrypted-password/@) \
= `/usr/bin/mkpasswd --method=sha-512 '$VAR(@)' | tr -d \\\\n` \
&& $VAR(@) = "")
-
-delete:expression: $VAR(@) = "" \ No newline at end of file