Marc Huber <
marc.j...@googlemail.com> writes:
>
> Hi,
>
> no hints from
>
> debug aaa authorization
>
> on the router ?
>
> Cheers,
>
> Marc
>
Thanks for the hint Marc,
seems we bumped into IOS buggy behavior. We fixed the issue, and just
for future list reference here are the tests conducted by a colleague.
It looks like we ran across some buggy behavior on the specific image
(c880data-universalk9-mz.151-4.M3.bin).
Test 1
------
config:
aaa authorization exec vty group opap local
line vty 0 4
authorization exec vty
result:
May 7 08:26:50.334: AAA/AUTHOR (00000045): Method list id=29000002
not configured. Skip author
comment:
IOS cannot recognise the configured "vty" method.
Test 2
------
config:
aaa authorization exec vty group opap local
! we add default method
aaa authorization exec default group opap local
line vty 0 4
! authorization method removed to test default method
result:
May 7 08:33:26.910: AAA/AUTHOR (0x46): Pick method list 'default'
May 7 08:33:26.950: AAA/AUTHOR/EXEC(00000046): processing AV cmd=
May 7 08:33:26.950: AAA/AUTHOR/EXEC(00000046): processing AV priv-lvl=15
May 7 08:33:26.950: AAA/AUTHOR/EXEC(00000046): Authorization successful
comment:
Default method is used as expected. Privilege 15 is applied and we get
a # prompt.
Test 3
------
config:
aaa authorization exec vty group opap local
aaa authorization exec default group opap local
line vty 0 4
! we apply "vty" method again
authorization exec vty
result:
May 7 08:34:18.286: AAA/AUTHOR (0x47): Pick method list 'vty'
May 7 08:34:18.322: AAA/AUTHOR/EXEC(00000047): processing AV cmd=
May 7 08:34:18.322: AAA/AUTHOR/EXEC(00000047): processing AV priv-lvl=15
May 7 08:34:18.322: AAA/AUTHOR/EXEC(00000047): Authorization successful
comment:
IOS now correctly applies "vty" method (!)
Test 4
------
config:
aaa authorization exec vty group opap local
! we remove default method
line vty 0 4
authorization exec vty
result:
May 7 08:35:48.530: AAA/AUTHOR (0x48): Pick method list 'vty'
May 7 08:35:48.558: AAA/AUTHOR/EXEC(00000048): processing AV cmd=
May 7 08:35:48.558: AAA/AUTHOR/EXEC(00000048): processing AV priv-lvl=15
May 7 08:35:48.558: AAA/AUTHOR/EXEC(00000048): Authorization successful
comment:
Black abyss of IOS. The bloody thing works with the initial
config. Confirmed working after reload too.