rlm_perl and dynamic_clients

Alan DeKok aland at deployingradius.com
Tue Aug 28 16:14:55 CEST 2012


Steven Eksteen wrote:
> I was wondering how would I use "Packet-Src-IP-Address" using Perl for
> Dynamic Clients. I thought it might be part of the RAD_REQUEST hash.

  It's not, but you can do:

server dynamic_client_server {
        authorize {
		update request {
			Tmp-IP-Address-0 := "%{Packet-Src-IP-Address}"
		}

                dynamic-clients-pl
        }
}


  And then use the Tmp-IP-Address-0 in the Perl code.

> If some direction could be made as to setting
> "FreeRADIUS-Client-Shortname", "FreeRADIUS-Client-Secret", etc. too I
> would be very grateful.

  You just set them in the RAD_REPLY hash.

> I already have Perl working for the normal AAA
> functions. This just doesn't appear to work the same way. I am not a
> Perl developer in the slightest so apologies in advance if this is a
> monumentally stupid question.

  Nope.  It's a complicated system.

  Alan DeKok.


More information about the Freeradius-Users mailing list