How to use svc_acct.import

Ivan Kohler ivan at sisd.com
Thu Mar 25 00:54:53 PST 1999


Ok, bin/svc_acct.import and bin/svc_acct_sm.import now use Term::Query and
spit out some kinds of nonsensical input.  In particular, you can't enter
non-existant service part numbers, which would lead to an unintuitive
error message. 

(Just checked this in now...)

On Wed, Mar 17, 1999 at 09:28:02PM -0500, Ivan Kohler wrote:
> 
> On Thu, Mar 18, 1999 at 12:12:25PM +1000, A P Blogg wrote:
> > 
> > But now, I'm getting the following error...
> > 
> > --
> > Unkonwn svcpart at ./svc_acct.import line 201, <PASSWD> chunk 1.
> > --
> > 
> > Any ideas?
> 
> You might get this error if you didn't enter valid service part numbers to
> one of the initial questions that applies to an account in your files. 
> Say, if you just hit return or `0'.
> 
> You should be getting a list of service part numbers before each question. 
> If you didn't (i.e. if you haven't setup all the items in the
> configuration section, including services), then you're doing stuff in the
> wrong order.  Go back and setup services.
> 
> > 
> > (by the way, I really appreciate your help and patience through all my
> > confusion, thank you for that.)
> > 
> > 
> > Sincerely,
> > 
> > A P Blogg
> > 
> > Administration and Sales
> > URL: http://www.immortalnet.com.au
> > E-Mail: apblogg at immortalnet.com.au
> > 
> > -----Original Message-----
> > From: Ivan Kohler <ivan at sisd.com>
> > To: ivan-freeside at sisd.com <ivan-freeside at sisd.com>
> > Date: Friday, March 19, 1999 2:47 AM
> > Subject: Re: How to use svc_acct.import
> > 
> > 
> > >On Thu, Mar 18, 1999 at 11:35:32AM +1000, A P Blogg wrote:
> > >> The error I'm getting is such as
> > >>
> > >> --
> > >> 1Unexpected line in users.import:
> > >>
> > #---------------------------------------------------------------------------
> > >> at ./svc_acct.import line 128, <USERS> chunk 2.
> > >> --
> > >>
> > >> And that line is a comment within the /etc/raddb/users file..
> > >>
> > >> If I take the comments out, it reads passed the username and Password and
> > >> chucks the sort of error out while reading "Auth-TYPE = ... blah blah" ..
> > >>
> > >> That specific enough?
> > >
> > >The first part was.  The second part wasn't.
> > >
> > >It is *ALWAYS* better to report the actual error.  "the sort of error"
> > >does me no good.
> > >
> > >I'm guessing that your second error is "2Unexpected line"... instead of
> > >"1Unexpected line"...  but unless you report the *EXACT* error message,
> > >that's just what it is, a guess.
> > >
> > >I thought the list subscription message ("report the exact error message")
> > >was clear on this point.  If anyone could suggest a better message I'll
> > >be happy to change it, to avoid this sort of noise on the list.
> > >
> > >It looks like svc_acct.import doesn't deal well with comments and
> > >multi-attribute lines.  You could massage your data before feeding it to
> > >svc_acct.import, or fix svc_acct.import to deal with these things.
> > >
> > >If you do the latter, I'd appriciate if you could contribute the changes
> > >back into the distibution.
> > >
> > >I'll try to take a look at it at some point, but I've been very busy
> > >latley.
> > >
> > >
> > >
> > >>
> > >> Sincerely,
> > >>
> > >> A P Blogg
> > >>
> > >> Administration and Sales
> > >> URL: http://www.immortalnet.com.au
> > >> E-Mail: apblogg at immortalnet.com.au
> > >>
> > >> -----Original Message-----
> > >> From: Ivan Kohler <ivan at sisd.com>
> > >> To: ivan-freeside at sisd.com <ivan-freeside at sisd.com>
> > >> Date: Friday, March 19, 1999 2:17 AM
> > >> Subject: Re: How to use svc_acct.import
> > >>
> > >>
> > >> >On Thu, Mar 18, 1999 at 11:25:50AM +1000, A P Blogg wrote:
> > >> >> svc_acct.import doesn't like my radius USERS file..
> > >> >
> > >> >It would certainly help if you could be more specific.
> > >> >
> > >> >> my typical users file looks something like this..
> > >> >>
> > >> >> boffey  Password = "secret"
> > >> >>         Auth-Type = System, Framed-Protocol = PPP,
> > >> >>         Service-Type = Framed-User,
> > >> >>         Framed-Protocol = PPP,
> > >> >>         Framed-MTU = 1500,
> > >> >>         Session-Timeout = 21600,
> > >> >>         Idle-Timeout = 900,
> > >> >>         Acct-Session-Time = 1,
> > >> >>         Acct-Input-Octets = 1,
> > >> >>         Acct-Output-Octets = 1,
> > >> >>         LOGINS = 1
> > >> >>
> > >> >> ---
> > >> >>
> > >> >> Anything wierdly different about my config that can't be handled?
> > >> >
> > >> >Probably not.  Whether or not you'll get free hand-holding is a
> > different
> > >> >question, though (I won't, and most everyone else capable has long since
> > >> >unsubscribed from the list).
> > >> >
> > >> >--
> > >> >Ivan Kohler <ivan at sisd.com> - finger for PGP key - <moc.dsis at navi>
> > Relhok
> > >> Navi
> > >> >Open-source billing and administration for ISPs -
> > >> http://www.sisd.com/freeside
> > >> >20 4,16 * * * saytime # please don't be surprised if you find me
> > dreaming
> > >> too
> > >>
> > >
> > >--
> > >Ivan Kohler <ivan at sisd.com> - finger for PGP key - <moc.dsis at navi> Relhok
> > Navi
> > >Open-source billing and administration for ISPs -
> > http://www.sisd.com/freeside
> > >20 4,16 * * * saytime # please don't be surprised if you find me dreaming
> > too
> > 
> 
> -- 
> Ivan Kohler <ivan at sisd.com> - finger for PGP key - <moc.dsis at navi> Relhok Navi
> Open-source billing and administration for ISPs - http://www.sisd.com/freeside
> 20 4,16 * * * saytime # please don't be surprised if you find me dreaming too

-- 
Ivan Kohler <ivan at sisd.com> - finger for PGP key - <moc.dsis at navi> Relhok Navi
Open-source billing and administration for ISPs - http://www.sisd.com/freeside
20 4,16 * * * saytime # please don't be surprised if you find me dreaming too



More information about the freeside-users mailing list