I test it and it works; but how can I modify Reply-Message.

My script was written in perl. Normally I put something like

print "Session-Timeout := 14400, Idle-Timeout := 3600";
Exit 0;

To reject users:

print "Reply-Message := 'You can not login now'";
exit 1;

BUT, Reply-Message on Access-Reject is not modified.

Suggestions,

Thanks
Alejandro.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alan DeKok
Sent: Wednesday, August 04, 2004 10:48 AM
To: [EMAIL PROTECTED]
Subject: Re: Modify packet type in rlm_exec? 

James Nedila <[EMAIL PROTECTED]> wrote:
> Can I modify the packet type in my exec module?
> (ie/ change an Access-Accept to an Access-Reject)

  You can return "1" from the script, which will cause the module to return
RLM_MODULE_FAIL, and should reject the user.

  Alan DeKok.


-
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