[freeside] Import just won't work

ivan ivan at 420.am
Mon Aug 13 20:38:13 PDT 2001


On Mon, Aug 13, 2001 at 11:28:44PM -0400, Rob Spurlock wrote:
> This appears to have fixed that problem.  All i have to do is strip
> the suffix (@lock-net) off of the users and it gets past this one.
> 
> Now I get these errors:
> readline() on closed filehandle main::SHADOW at ./svc_acct.import
> line 206.
> Use of uninitialized value in string eq at ./svc_acct.import line
> 221, <PASSWD> line 1.
> Use of uninitialized value in string eq at ./svc_acct.import line
> 221, <PASSWD> line 2.
> uid in use at ./svc_acct.import line 249, <PASSWD> line 2.
> 
> Am I assuming this is due to the hundreds of times I've run the
> import script and the passwd file doesn't match the radius users file?
> 
> If so, I assume I would be better off just dropping the database and
> starting with a newly patched import script that works the first time?

Yes.

> 
> Thanks again Ivan,
> 
> Rob
> 
> ---- Original Message ----
> From: ivan at 420.am
> To: ivan-freeside at sisd.com, 
> Subject: Re: [freeside] Import just won't work
> Date: Mon, 13 Aug 2001 20:09:37 -0700
> 
> >try this patch
> >
> >ivan at rootwood:~/freeside_current/bin$ cvs diff -u svc_acct.import 
> >Index: svc_acct.import
> >===================================================================
> >RCS file: /home/cvs/cvsroot/freeside/bin/svc_acct.import,v
> >retrieving revision 1.15
> >diff -u -r1.15 svc_acct.import
> >--- svc_acct.import     2001/07/30 06:07:47     1.15
> >+++ svc_acct.import     2001/08/14 03:08:58
> >@@ -166,7 +166,7 @@
> >   next if /^\s*$/;
> >   next if /^\s*#/;
> >   if ( /^\S/ ) {
> >- 
> >/^(\w+)\s+(Auth-Type\s+=\s+Local,\s+)Password\s+=\s+"([^"]+)"(,\s+Exp
> >iration\s+=\s+"([^"]*")\s*)?$/
> >+ 
> >/^(\w+)\s+(Auth-Type\s+=\s+Local,\s+)?Password\s+=\s+"([^"]+)"(,\s+Ex
> >piration\s+=\s+"([^"]*")\s*)?$/
> >       or die "1Unexpected line in users.import: $_";
> >     my($password,$expiration);
> >     ($username,$password,$expiration)=(lc($1),$3,$5);
> >
> >
> >On Mon, Aug 13, 2001 at 10:55:15PM -0400, Rob Spurlock wrote:
> >> Ivan, I've tried everything my limited mind can think of.  I 
> >removed
> >> tabs, quotes, spaces every combination.  Nothing would let it get
> >> past the error:
> >> 1Unexpected line in users.import: johndo Password = "nothing" at
> >> ./svc_acct.import line 166, <USERS> line 1.
> >> 
> >> I do assume this is the standard format for most Radius users 
> >files? 
> >> Are there any other files or perl modules etc that might be keeping
> >> this from working?
> >> 
> >> I'm at a brick wall here.
> >> 
> >> Thanks,
> >> 
> >> Rob
> >> 
> >> 
> >> Webmail Provided by Lock-Net Internet Services: www.lock-net.com
> >> 
> >
> >-- 
> >meow
> >_ivan
> >
> 
> Webmail Provided by Lock-Net Internet Services: www.lock-net.com
> 

-- 
meow
_ivan



More information about the freeside-users mailing list