[freeside] another general question

Vlad Sedov vlad at humbleguys.net
Wed Feb 20 07:20:47 PST 2002


ok cool.

Basically, what could be pretty useful, is if the services are not tied to specific server types, such as svc_acct for shell, svc_domain for domains, etc.,
but instead, the service definition would be associated with a server (or servers) from a table of user-defined "server definitions" which are basically a name attached to a hook script.

The hook script could handle addition/(un)suspension/deletion of a user from the specified servers. 

say, for example, you have a customer-only tech support site, and you want the customers to get a login on it if they have a dial-up account...

you create a dial-up service definition that's tied to "dial_up" and "tech_support" servers... the "dial_up" hook script would handle the icradius table, and the "tech_support" could be your own little script that would take care of adding a username to the tech support site.

that would give you a lot more control over the way services are created... especially  if your servers require extra magic to add a user. just let a separate script do it :)
that would make freeside even more compatible with odd OS's... 

the username/password/fullname stuff could be passed to the hook script via %ENV, along with a "open/close/suspend/unsuspend" flag..

this ability exists in a few billing packages.. it's really handy and relatively easy to implement.



ciao,

Vlad



> -----Original Message-----
> From: Kristian Hoffmann [mailto:khoff at pc-intouch.com]
> Sent: Wednesday, February 20, 2002 3:35 am
> To: ivan-freeside at sisd.com
> Subject: RE: [freeside] another general question
> 
> 
> Then I don't think I'll be much help at this point.  That doesn't sound
> like anything we've done that's not in the current development code.  To
> answer your question, no you can't specify different add/modify/delete
> scripts for the same type of service.  Ohh, there's an idea.
> 
> Ivan.  How about a table called something like part_svc_event where you
> can set add/modify/etc. scripts for different svcparts?
> 
> Vlad.  If you'd like to give us a better idea of what you're after, maybe
> it could get added to the TODO list and get picked up by someone.
> 
> -Kristian
> 
> On Tue, 19 Feb 2002, Vlad Sedov wrote:
> 
> >
> > well, our mail is handled by courier, and we have some other web-based
> > services that are tied to dial-up accounts. addition/deletion/suspension
> > is handled by separate scripts...
> >
> > regards,
> >
> > Vlad
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: Kristian Hoffmann [mailto:khoff at pc-intouch.com]
> > > Sent: Tuesday, February 19, 2002 5:50 pm
> > > To: ivan-freeside at sisd.com
> > > Subject: Re: [freeside] another general question
> > >
> > >
> > > Anything in particular?  You wouldn't be looking at doing a 
> DSL or similar
> > > service, would you?  If so, speak now before I start 
> submitting patches.
> > >
> > > -Kristian
> > >
> > > On Tue, 19 Feb 2002, Vlad Sedov wrote:
> > >
> > > >
> > > > Ivan,
> > > >
> > > > Is it possible to create a custom service, other than
> > > > radius/hosting/email, that runs a separate script to set up 
> the account,
> > > > etc.. without making serious changes to the code?
> > > >
> > > >
> > > > thanks
> > > >
> > > >
> > > > Vlad
> > > >
> > >
> 


More information about the freeside-users mailing list