From dc7e3e55b85998349221a6fe7db2edc9ab811c44 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Wed, 31 Mar 1993 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1993-03-31 --- boot/userpasswd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/boot/userpasswd.c b/boot/userpasswd.c index f2b26ff8f42b1d239a173b6e4bdb2108bfb8e77a..08f88578d9b75d36f34eab9332d18c2553350632 100644 --- a/boot/userpasswd.c +++ b/boot/userpasswd.c @@ -34,6 +34,14 @@ userpasswd(int islocal, Method *mp) msg = checkkey(mp, username, hostkey); if(msg == 0) break; + /* try the old key algorithm till everyone has switched */ + opasstokey(hostkey, password); + msg = checkkey(mp, username, hostkey); + if(msg == 0){ + print("You have an old style key. Once you are up, please run 'aux/passwd'\n"); + print("and retype your key to convert.\n"); + break; + } fprint(2, "?%s\n", msg); outin("user", username, sizeof(username)); }