Source-Changes-HG archive

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

[src/trunk]: src/etc recognize md5/bcrypt password. noted by: Eric Jacoboni ...



details:   https://anonhg.NetBSD.org/src/rev/0265a7987cb5
branches:  trunk
changeset: 533005:0265a7987cb5
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Jun 18 22:21:43 2002 +0000

description:
recognize md5/bcrypt password.  noted by: Eric Jacoboni <jaco%teaser.fr@localhost>

diffstat:

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

diffs (21 lines):

diff -r a90d80823503 -r 0265a7987cb5 etc/security
--- a/etc/security      Tue Jun 18 21:22:45 2002 +0000
+++ b/etc/security      Tue Jun 18 22:21:43 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: security,v 1.76 2002/06/10 16:04:48 atatat Exp $
+#      $NetBSD: security,v 1.77 2002/06/18 22:21:43 itojun Exp $
 #      from: @(#)security      8.1 (Berkeley) 6/9/93
 #
 
@@ -205,7 +205,8 @@
                        printf "Login %s has no password.\n", $1;
                if (length($2) != 13 &&
                    length($2) != 20 &&
-                   length($2) != 34 &&
+                   $2 !~ /\$1/ &&
+                   $2 !~ /\$2/ &&
                    $2 != "" &&
                    $2 !~ /^\*[A-z-]+$/ &&
                    $1 != "toor") {



Home | Main Index | Thread Index | Old Index