Parsing Value with External Script

Jean Tomaz jean_ts at hotmail.com
Sat Jul 8 16:36:28 CEST 2017


Hi, Alan

The debug output is bellow. I'm using the command bellow

radtest user_test testing 127.0.0.1 1812 testing123

-----------------------------------------------------------------------------------------------------------------------------------------


rad_recv: Access-Request packet from host 127.0.0.1 port 41548, id=208,
length=79
        User-Name = "user_test"
        User-Password = "testing"
        NAS-IP-Address = 127.0.1.1
        NAS-Port = 1812
        Message-Authenticator = 0x59adc08295f31c2eeb3e7b1b5e7c71bd
# Executing section authorize from file
/etc/freeradius/sites-enabled/default
+group authorize {
++[preprocess] = ok
++[chap] = noop
++[mschap] = noop
++[digest] = noop
[suffix] No '@' in User-Name = "user_test", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] = noop
[eap] No EAP-Message, not doing EAP
++[eap] = noop
[files] users: Matched entry user_test at line 334
rlm_exec (exec): 'wait' must be enabled to use exec xlat
[files]         expand: %{exec:/bin/echo foo} ->
++[files] = ok
++[expiration] = noop
++[logintime] = noop
++[pap] = updated
+} # group authorize = updated
Found Auth-Type = PAP
# Executing group from file /etc/freeradius/sites-enabled/default
+group PAP {
[pap] login attempt with password "testing"
[pap] Using clear text password "testing"
[pap] User authenticated successfully
++[pap] = ok
+} # group PAP = ok
Login OK: [user_test] (from client localhost port 1812)
# Executing section post-auth from file
/etc/freeradius/sites-enabled/default
+group post-auth {
++[exec] = noop
+} # group post-auth = noop
Sending Access-Accept of id 208 to 127.0.0.1 port 41548
        Service-Type = Framed-User
        Framed-Protocol = PPP
        Framed-Pool = ""
Finished request 0.
Going to the next request
Waking up in 4.9 seconds.

Cleaning up request 0 ID 208 with timestamp +5
Ready to process requests.

----------------------------------------------------------------------------------------------------------------------------------------

Thanks

2017-07-08 10:17 GMT-03:00 Alan DeKok <aland at deployingradius.com>:

> On Jul 7, 2017, at 5:00 PM, Jean Tomaz <jean_ts at hotmail.com> wrote:
> >
> > I have a question.
> > I need to pass a value to Framed-Pool attribute only to one user, using
> an
> > external script.
> >
> > My file /etc/freeradius/users
> >
> > user_test Cleartext-Password := "testing"
> >    Auth-Type := Accept
> >    Framed-Protocol = PPP
> >    Framed-Pool = `%{exec:/bin/echo foo}`
> >    Fall-Through = Yes
> >
> > It's not working. What it's happening?
>
>   Read the debug log to see.
>
> > Using the freeradius debug the Framed-Pool attribute is appearing empty.
>
>   The debug log shows what's going on.  If you don't understand it, post
> it here.
>
>   Alan DeKok.
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/
> list/users.html
>


More information about the Freeradius-Users mailing list