X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fsvc_acct.export;h=7e92c61e87721c72963b8aa8ec060c45f25a71ed;hb=a03e44937be8d6c2f99dc830ef2583cbbbb36dfc;hp=1c3ffa243baa23b5de8698045007a5765a778512;hpb=365fdd1f1938f399113a5ce013a7c2daa431a5c2;p=freeside.git diff --git a/bin/svc_acct.export b/bin/svc_acct.export index 1c3ffa243..7e92c61e8 100755 --- a/bin/svc_acct.export +++ b/bin/svc_acct.export @@ -1,6 +1,6 @@ #!/usr/bin/perl -w # -# $Id: svc_acct.export,v 1.19 2001-05-08 10:44:17 ivan Exp $ +# $Id: svc_acct.export,v 1.21 2001-07-30 06:07:46 ivan Exp $ # # Create and export password files: passwd, passwd.adjunct, shadow, # acp_passwd, acp_userinfo, acp_dialup, users @@ -38,7 +38,14 @@ # ivan@sisd.com 98-sep-18 # # $Log: svc_acct.export,v $ -# Revision 1.19 2001-05-08 10:44:17 ivan +# Revision 1.21 2001-07-30 06:07:46 ivan +# allow !! for locked accounts instead of changing to *SUSPENDED* +# +# Revision 1.20 2001/06/20 08:33:42 ivan +# > Use of uninitialized value in concatenation (.) at svc_acct.export line +# > 276. +# +# Revision 1.19 2001/05/08 10:44:17 ivan # fix for OO Net::SCP # # Revision 1.18 2001/04/22 01:56:15 ivan @@ -118,7 +125,10 @@ if ( $icradiusmachines && $conf->exists('icradius_secrets') ) { $icradius_dbh = dbh; } -my $textradiusprepend = $conf->config('textradiusprepend'); +my $textradiusprepend = + $conf->exists('textradiusprepend') + ? $conf->config('textradiusprepend') + : ''; my(@saltset)= ( 'a'..'z' , 'A'..'Z' , '0'..'9' , '.' , '/' ); require 5.004; #srand(time|$$); @@ -184,6 +194,7 @@ foreach $svc_acct (@svc_acct) { my($cpassword,$rpassword); if ( ( length($password) <= 8 ) && ( $password ne '*' ) + && ( $password ne '!!' ) && ( $password ne '' ) ) { $cpassword=crypt($password,