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