summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2004-12-24 23:27:35 +0000
committerivan <ivan>2004-12-24 23:27:35 +0000
commit05430ec3d4d7d2303c0d8012d195923ec86fc289 (patch)
treebd38e73262f3d31d82febc7eb552f183aa7fc021
parent29a4b8acd37e4d6bc7bea9265974f9db65e9d49f (diff)
import NP and *LK* from shadow file as * (no password)
-rwxr-xr-xbin/passwd.import4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/passwd.import b/bin/passwd.import
index df53b50ad..78413c8f5 100755
--- a/bin/passwd.import
+++ b/bin/passwd.import
@@ -1,5 +1,5 @@
#!/usr/bin/perl -Tw
-# $Id: passwd.import,v 1.5.4.3 2003-06-12 14:08:02 ivan Exp $
+# $Id: passwd.import,v 1.5.4.4 2004-12-24 23:27:35 ivan Exp $
use strict;
use vars qw(%part_svc);
@@ -76,6 +76,8 @@ while (<SHADOW>) {
my($username,$password)=split(/:/);
#$password =~ s/^\!$/\*/;
#$password =~ s/\!+/\*SUSPENDED\* /;
+ $password =~ s/^NP$/\*/;
+ $password =~ s/^\*LK\*$/\*/;
$password{$username}=$password;
}