diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/system/login/user/node.tag/authentication/plaintext-password/node.def | 3 |
1 files changed, 2 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 78619d79..0e2bd7a5 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 @@ -5,5 +5,6 @@ help: "Configure plaintext password for encryption" # "encrypted-password" to an empty string (which actually allows login without # password). update: $(@) == "" \ -|| ($(../encrypted-password/@) = `/opt/vyatta/sbin/rl_passwd '$(@)' dummy` \ +|| ($(../encrypted-password/@) \ + = `/usr/bin/mkpasswd -H md5 '$(@)' | tr -d \\\\n` \ && $(@) = "") |