From: ivan Date: Wed, 17 Mar 2004 23:08:48 +0000 (+0000) Subject: skip root user and anyone with *LK* or NP accounts X-Git-Tag: NET_WHOIS_RAW_0_31~59 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=3fe2bdd02f71c30a4d2bb29fdf3e63f416fd92d7;hp=9ceb48a8f852ba25cc569d2da87c092cf33b3a28 skip root user and anyone with *LK* or NP accounts --- diff --git a/bin/shadow.reimport b/bin/shadow.reimport index a02582d96..2fc90d7f2 100755 --- a/bin/shadow.reimport +++ b/bin/shadow.reimport @@ -93,6 +93,10 @@ while () { next unless $svc_acct->_password eq '*' || $opt_r; + next if $svc_acct->username eq 'root'; + + next if $password eq 'NP' || $password eq '*LK*'; + next if $svc_acct->_password eq $password; next if $svc_acct->_password =~ /^\*SUSPENDED\*/;