Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc Allow md5 passwords of length 34 as passwords



details:   https://anonhg.NetBSD.org/src/rev/cf9b468115ab
branches:  trunk
changeset: 507058:cf9b468115ab
user:      atatat <atatat%NetBSD.org@localhost>
date:      Mon Mar 12 16:48:13 2001 +0000

description:
Allow md5 passwords of length 34 as passwords

diffstat:

 etc/security |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 17416e42f7b8 -r cf9b468115ab etc/security
--- a/etc/security      Mon Mar 12 16:13:17 2001 +0000
+++ b/etc/security      Mon Mar 12 16:48:13 2001 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: security,v 1.49 2001/02/11 09:55:09 jdolecek Exp $
+#      $NetBSD: security,v 1.50 2001/03/12 16:48:13 atatat Exp $
 #      from: @(#)security      8.1 (Berkeley) 6/9/93
 #
 
@@ -90,7 +90,7 @@
                        printf "Login %s has more than "len" characters.\n", $1;
                if ($2 == "")
                        printf "Login %s has no password.\n", $1;
-               if (length($2) != 13 && length($2) != 20 && $2 != "") {
+               if (length($2) != 13 && length($2) != 20 && length($2) != 34 && $2 != "") {
                        if ($10 == "" || shells[$10])
                    printf "Login %s is off but still has a valid shell (%s)\n",
                                    $1, $10;



Home | Main Index | Thread Index | Old Index