Dear A.L.M.Buxey
you still havent said what you actually want as values. you just say it
doesnt work. you also ignore my
request for debug output to see what/where.
I need "*Azadegan-1 atm 2/16:251:0.35*" from this attribute
:Cisco-AVPair = "circuit-id-tag=Azadegan-1 atm 2/16:251:0.35"
server is running in high load and i do not access to other cisco 10000
router to test it for debug mod. for running in debug mod i change this
parameter in site enable but i can not get full debug message in log file :
in authorize section :
auth_log
in accounting section :
detail
sql_log
in post-auth section :
sql_log
reply_log
and then you query/question the other answer provided to you regardoing
multiple
attributes. just do what he said (your first one works because ONE
attribute will
be the parent 'Cisco-AVpair').
i test it , but if i use Cisco-AVPair[0] and Cisco-AVPair[1] first one
and second one is not working.
Do i need to to move them in some variable then use regular exertion
?(soothing like this) :
value0 := %{Cisco-AVPair[0]}
value1 := %{Cisco-AVPair[1]}
if (value0 =~ /^client-mac-address=([a-f0-9]
[a-f0-9])([a-f0-9][a-f0-9]).([a-f0-9][a-f0-9])([a-f0-9][a-f0-9]).([a-f0-9][a-f0-9])([a-f0-9][a-f0-9])$/)
{
if (!Calling-Station-Id) {
update request {
Calling-Station-Id :=
"%{1}:%{2}:%{3}:%{4}:%{5}:%{6}"
Called-Station-Id := "%{NAS-Identifier}"
}
}
}
############################################################################
if (value1 =~ /^circuit-id-tag=(.*)$/) {
update request {
NAS-Port-Id := "%{1}"
}
}
thanks and best regards.
On Mon, Apr 29, 2013 at 2:21 AM, <[email protected]> wrote:
> Hi,
>
> > i have 2 Cisco-AVPair in request attribute :
> >
> > Cisco-AVPair = "client-mac-address=90f6.52d2.384f"
> >
> > and
> >
> > Cisco-AVPair = "circuit-id-tag=Azadegan-1 atm 2/16:251:0.35"
>
> you still havent said what you actually want as values. you just say it
> doesnt work. you also ignore my
> request for debug output to see what/where.
>
>
> and then you query/question the other answer provided to you regardoing
> multiple
> attributes. just do what he said (your first one works because ONE
> attribute will
> be the parent 'Cisco-AVpair').
>
>
> alan
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html