This is a discussion on Re: Post-Auth: reply values within the FreeRADIUS Users forums, part of the Networking and Network Related category; > > I'm trying to write a script for the post-auth section. > > In this script I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> > I'm trying to write a script for the post-auth section.
> > In this script I need the information if the Request was > successful or if it > > was rejected. > > > > The sql module uses the following expression: %{reply:Packet-Type} > > > > But how could I use this in my script? > > I've written a short script shich should list all available > Variables: > > > > ---- > > #!/bin/bash > > > > printenv > /tmp/radius/`date +%F_%H-%M-%S_%N` > > ---- > > > > But it doesn't contain the reply values ... > > > > Any ideas or hints? > > Only what's included in the Post-Auth-Type REJECT section in > postauth is run > when the request is about to be rejected. So that's a rather > easy way of > finding out if the request was successful or not. Yeah, that's true. In the meantime I solved the problem a different way. I created an exec module like this: [...] exec newclient { wait = yes program = "/usr/local/etc/raddb/scripts/newclient.pl 172.16.21.174 %l %{reply:Packet-Type}" } [...] bye Christian - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html |