Got it...

The script has to output ",\n" after each pair like so:

Acct-Interim-Interval = 600,
Idle-Timeout = 3600,
Session-Timeout = 171454526

Regards,
Thor.

----- Original Message ----- 
From: "Paul Hampson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 26, 2004 4:16 PM
Subject: Re: Exec-Program-Wait attributes not included in Access-Accept


> On Mon, Jul 26, 2004 at 03:58:37PM +0200, Thor Spruyt wrote:
> > I have freeradius 0.9.3 running with Postgresql database backend.
> > The only thing the radius checks is the password and then executes an
> > external script if authentication is ok.
>
> > The section in the users file is:
>
> > DEFAULT         Auth-Type = Local
> >                 Exec-Program-Wait = "/opt/radius1/bin/auth.pl"
>
> > Everything runs fine, except the attributes output by the script (attr =
> > value seperated by newlines) are not added to the reply as you can see
in
> > this debugging output:
>
> > auth: type Local
> > auth: user supplied User-Password matches local User-Password
> > radius_xlat:  '/opt/radius1/bin/auth.pl'
> > Exec-Program: /opt/radius1/bin/auth.pl
> > Exec-Program output: Acct-Interim-Interval = 600 Idle-Timeout = 3600
> > Session-Timeout = 171454526
> > Exec-Program-Wait: plaintext: Acct-Interim-Interval = 600 Idle-Timeout =
> > 3600 Session-Timeout = 171454526
> > Exec-Program: returned: 0
> > Login OK: [thor] (from client x port 0 cli 00:30:00:04:A5:22)
> > Sending Access-Accept of id 112 to 192.168.250.105:32780
> > Finished request 0
> > Going to the next request
>
> > Any idea what might be wrong?
>
> Hmm. I'd suggest outputting the attributes on seperate lines...
>
> I'd also suggest moving to rlm_exec, which is less bug-prone as far as
> we know. ^_^
>
>
> -- 
> Paul "TBBle" Hampson, on an alternate email client.
>
> -
> List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
>


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to