reference client stanzas in unlang?
Hi, is there a way to reference the name of the client stanza (or its shortname) in unlang? I.e. if there is client foo { ipaddr = 1.2.3.4 shortname = foostuff } Then there's a request coming in from this client. In the client processing, can there be sth like if ( -- something that reveals "foo" or "foostuff" -- ) { ... } ? Using huntgroups and assigning Client-IP-Address into huntgroups is procedurally not an option. Greetings, Stefan Winter -- Stefan WINTER Ingenieur de Recherche Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche 6, rue Richard Coudenhove-Kalergi L-1359 Luxembourg Tel: +352 424409 1 Fax: +352 422473
Stefan Winter wrote:
Hi,
is there a way to reference the name of the client stanza (or its shortname) in unlang? I.e. if there is
client foo { ipaddr = 1.2.3.4 shortname = foostuff }
Then there's a request coming in from this client. In the client processing, can there be sth like
if ( -- something that reveals "foo" or "foostuff" -- ) { ... }
?
if ("%{client:shortname}" == "foostuff") { ... } Also: %{home_server:foo} %{home_server_pool:foo} %{config:section.subsection.item} gets you "value" for that item Alan DeKok.
is there a way to reference the name of the client stanza (or its shortname) in unlang? I.e. if there is
client foo { ipaddr = 1.2.3.4 shortname = foostuff }
Then there's a request coming in from this client. In the client processing, can there be sth like
if ( -- something that reveals "foo" or "foostuff" -- ) { .... }
This was documented recently on the list: http://lists.freeradius.org/pipermail/freeradius-users/2009-February/msg0007... Ivan Kalik Kalik Informatika ISP
participants (3)
-
Alan DeKok -
Stefan Winter -
tnt@kalik.net