cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1465
Views
0
Helpful
3
Replies

Access Registrar Av-Pairs

miguel_lara
Level 1
Level 1

Hello,

I need to use the access registrar radclient to test a new service. The problem i have is when i try to set the avpairs attributes to the packets. I can only set one avpair, if i try to set a second it overwrites the first avpair.

I already tried to create the attribute the same way you add it to the AR configuration ( All in one command) but it does'n work.

Somebody have any ideas

Thannks a lot!!!!

1 Accepted Solution

Accepted Solutions

sanpatel
Level 1
Level 1

Here's how you do it. Unfortunately, the method isn't documented so I will file a bug to get that fixed. Thanks for the input.

--> simple bob bob

p001

--> attrib cisco-avpair blah

a005

--> attrib cisco-avpair boo

a006

--> p001 set mattrib a005

--> p001

Packet: code = Access-Request, id = 0, length = 0, attributes =

User-Name = bob

User-Password = bob

NAS-Identifier = localhost

NAS-Port = 1

Cisco-AVPair = blah

--> p001 set mattrib a006

--> p001

Packet: code = Access-Request, id = 0, length = 0, attributes =

User-Name = bob

User-Password = bob

NAS-Identifier = localhost

NAS-Port = 1

Cisco-AVPair = blah

Cisco-AVPair = boo

View solution in original post

3 Replies 3

owillins
Level 6
Level 6

Have you tried with the command set Cisco-Avpair?

sanpatel
Level 1
Level 1

Here's how you do it. Unfortunately, the method isn't documented so I will file a bug to get that fixed. Thanks for the input.

--> simple bob bob

p001

--> attrib cisco-avpair blah

a005

--> attrib cisco-avpair boo

a006

--> p001 set mattrib a005

--> p001

Packet: code = Access-Request, id = 0, length = 0, attributes =

User-Name = bob

User-Password = bob

NAS-Identifier = localhost

NAS-Port = 1

Cisco-AVPair = blah

--> p001 set mattrib a006

--> p001

Packet: code = Access-Request, id = 0, length = 0, attributes =

User-Name = bob

User-Password = bob

NAS-Identifier = localhost

NAS-Port = 1

Cisco-AVPair = blah

Cisco-AVPair = boo

Thanks a lot!!!!

Great idea to document it

Thanks Again!!!!