Re: Using external program for authentication

2004-12-04 Thread Alan DeKok
Nick 'TARANTUL' Novikov <[EMAIL PROTECTED]> wrote: > It's not good, fork very slow. Yes. > Can freeradius fork external script at startup and send attributes to > him through pipe w/o forking ? (as in openradius) No. Feel free to write a module which implements that, though. Alan DeKo

Re: Using external program for authentication

2004-12-04 Thread Nick 'TARANTUL' Novikov
Alan DeKok wrote: But in this case freeradius will fork process on every request. Yes. It's not good, fork very slow. Can freeradius fork external script at startup and send attributes to him through pipe w/o forking ? (as in openradius) -- TARANTUL - List info/subscribe/unsubscribe? Se

Re: Using external program for authentication

2004-12-03 Thread Alan DeKok
Nick 'TARANTUL' Novikov <[EMAIL PROTECTED]> wrote: > But in this case freeradius will fork process on every request. Yes. > Possible configure freeradius for fork process at startup and send > attributes through pipe? Does the external program support reading data through a pipe? If not,

Re: Using external program for authentication

2004-12-02 Thread Chris Riley
On Dec 1, 2004, at 5:48 PM, Alan DeKok wrote: Chris Riley <[EMAIL PROTECTED]> wrote: I'm setting up freeradius, but our passwords are stored in a non-standard format. It's no problem to write a perl script to handle figuring out if a given user/password pair is OK, but I haven't been able to figure

Re: Using external program for authentication

2004-12-02 Thread Nick 'TARANTUL' Novikov
Boian Jordanov wrote: Then use rlm_python or rlm_perl and write your script/program in python or perl. I wrote to this maillist about troubles with rlm_python and cx_Oracle module. This module will work in separate process. And I can write script on language differnet from perl/python. -- TAR

Re: Using external program for authentication

2004-12-01 Thread Boian Jordanov
On Thu, Dec 02, 2004 at 11:30:39AM +0400, Nick 'TARANTUL' Novikov wrote: > Alan DeKok wrote: > > >DEFAULT Auth-Type := Accept > > Exec-Program-Wait = "/path/to/program args args" > > > > > > But in this case freeradius will fork process on every request. > Possible configure freeradius for f

Re: Using external program for authentication

2004-12-01 Thread Nick 'TARANTUL' Novikov
Alan DeKok wrote: DEFAULT Auth-Type := Accept Exec-Program-Wait = "/path/to/program args args" But in this case freeradius will fork process on every request. Possible configure freeradius for fork process at startup and send attributes through pipe? -- TARANTUL - List info/subscribe/unsubsc

Re: Using external program for authentication

2004-12-01 Thread Thor Spruyt
Alan DeKok wrote: "Thor Spruyt" <[EMAIL PROTECTED]> wrote: It's funny to notice that sometimes they say "We want to get rid of Exec-Program(-Wait)" and other times they say "Use Exec-Program(-Wait)" :) Until it's replaced with something better, people should use it. I have a pretty good idea as t

Re: Using external program for authentication

2004-12-01 Thread Alan DeKok
"Thor Spruyt" <[EMAIL PROTECTED]> wrote: > It's funny to notice that sometimes they say "We want to get rid of > Exec-Program(-Wait)" and other times they say "Use Exec-Program(-Wait)" :) Until it's replaced with something better, people should use it. I have a pretty good idea as to what I

Re: Using external program for authentication

2004-12-01 Thread Thor Spruyt
Alan DeKok wrote: Chris Riley <[EMAIL PROTECTED]> wrote: I'm setting up freeradius, but our passwords are stored in a non-standard format. It's no problem to write a perl script to handle figuring out if a given user/password pair is OK, but I haven't been able to figure out how to get freeradius t

Re: Using external program for authentication

2004-12-01 Thread Alan DeKok
Chris Riley <[EMAIL PROTECTED]> wrote: > I'm setting up freeradius, but our passwords are stored in a > non-standard format. It's no problem to write a perl script to handle > figuring out if a given user/password pair is OK, but I haven't been > able to figure out how to get freeradius to run t

Using external program for authentication

2004-12-01 Thread Chris Riley
I'm setting up freeradius, but our passwords are stored in a non-standard format. It's no problem to write a perl script to handle figuring out if a given user/password pair is OK, but I haven't been able to figure out how to get freeradius to run this program to verify the user. Ideally this c