Paulo Angelo <[EMAIL PROTECTED]> wrote:
> I'm having some problems with Free Radius 0.4 when I try to
> execute a external program (a shell script).
>
> I've created a user in users file like:
>
>
> pa Auth-Type := Local, Password == "pa"
> Service-Type = Framed-User,
> Exec-Program = "/root/sh %u %f",
...
> I can connect using this user, but it execute the program
> ("/root/sh") like :
>
> /root/sh pa ?.?.?.?
That's becasue the Framed-IP-Address does not exist yet. You've got
to add it to the request, to send it to portslave.
If portslave picks an IP address to use out of it's local pool, then
it is IMPOSSIBLE to discover the Framed-IP-Address during the
authentication part of RADIUS.
You then MUST use the 'acct_users' file. See the latest CVS
snapshot, in 'scripts/exec-program-wait' for some examples.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html