summaryrefslogtreecommitdiff
path: root/templates/system/login
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@ubnt.com>2012-08-21 13:02:56 -0700
committerDaniil Baturin <daniil@baturin.org>2013-12-17 03:04:23 +0100
commitc794617a0dd100ddd472ba04f97f08aaf0bb6f77 (patch)
tree4fc31ead817a79b04480501a5ee0b92cf99637ca /templates/system/login
parent9cb7dea663e03a956b54bcb74c48a8d40a933769 (diff)
downloadvyatta-cfg-system-c794617a0dd100ddd472ba04f97f08aaf0bb6f77.tar.gz
vyatta-cfg-system-c794617a0dd100ddd472ba04f97f08aaf0bb6f77.zip
Fix bug 318 - Use SHA-512 hashing for user passwords instead of MD5
Signed-off-by: Daniil Baturin <daniil@baturin.org>
Diffstat (limited to 'templates/system/login')
-rw-r--r--templates/system/login/user/node.tag/authentication/plaintext-password/node.def2
1 files changed, 1 insertions, 1 deletions
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 12a74a36..242a623d 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
@@ -6,5 +6,5 @@ help: Plaintext password for encryption
# password).
update:expression: $VAR(@) == "" \
|| ($VAR(../encrypted-password/@) \
- = `/usr/bin/mkpasswd -H md5 '$VAR(@)' | tr -d \\\\n` \
+ = `/usr/bin/mkpasswd --method=sha-512 '$VAR(@)' | tr -d \\\\n` \
&& $VAR(@) = "")