Still does not seem to be working.. Still looks like
its expanding to "nothing" ?
++? if ("%{client: shortname}" == WCSmgmt )
expand: %{client: shortname} ->
? Evaluating ("%{client: shortname}" == WCSmgmt ) -> FALSE
++? if ("%{client: shortname}" == WCSmgmt ) -> FALSE
}
Yet in clients.conf:
client 155.97.142.192 {
secret = doesntmatter
shortname = WCSmgmt
}
The request does seem to be coming from the correct client ?
rad_recv: Access-Request packet from host 155.97.142.192 port 55567, id=0,
length=124
Thanks,
Robert
________________________________________
From: freeradius-users-bounces+robert.roll=utah....@lists.freeradius.org
[freeradius-users-bounces+robert.roll=utah....@lists.freeradius.org] On Behalf
Of Alan DeKok [[email protected]]
Sent: Tuesday, March 29, 2011 12:00 PM
To: FreeRadius users mailing list
Subject: Re: testing which client initiated request ? Client-shortname ...
FreeRADIUS-Client-Shortname
Robert Roll wrote:
> I'd like to test and see which particular client was responsible for a
> request.
> I found two attributes Client-Shortname and FreeRADIUS-Client-Shortname, but
> when I try and use this in unlang they do not seem to have values ? Any
> suggestions...
Use Packet-Src-IP-Address
Or, %{client: shortname}, if it's configured in clients.conf.
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