Hey,
I'm trying to make the HP5900 run AAA against a tacacs server.
Problem is, I can't seem to figure out how to make it work.
I have a problem somewhere either configuring the tac_plus server or configureing the switch.
The symptoms are that I log on and immidiately gets logged off.
If I enable default user role "role default-role enable", I can log on, but I'm being assigned the default role network-operator, and i need network-admin.
using: "debugging hwtacacs all", and "debugging role all", this is (shortened to the last entries) what I see when i try logging on (undo role default-role enable):
<beginquote>
*Jan 9 05:41:53:109 2011 <switch> TACACS/7/EVENT:
PAM_TACACS: Sending request packet.
*Jan 9 05:41:53:109 2011 <switch> TACACS/7/send_packet:
version: 0xc0 type: AUTHOR_REQUEST seq_no: 1 flag: ENCRYPTED_FLAG
session-id: 0x1a1d8820
length of payload: 44
authen_method: TACACSPLUS priv_lvl: 0 authen_type: ASCII authen_service: LOGIN
user_len: 5 port_len: 0 rem_len: 12 arg_cnt: 2
arg0_len: 13 arg1_len: 4
user: <user>
port:
rem_addr: <tac-plus_server>
arg0: service=shell arg1: cmd*
*Jan 9 05:41:53:110 2011 <switch> TACACS/7/EVENT:
PAM_TACACS: Receiving reply packet.
*Jan 9 05:41:53:117 2011 <switch> TACACS/7/recv_packet:
version: 0xc0 type: AUTHOR_REPLY seq_no: 2 flag: ENCRYPTED_FLAG
session-id: 0x1a1d8820
length of payload: 69
Status: STATUS_PASS_ADD arg_cnt: 3 server_msg len: 0 data len: 0
arg0_len: 12 arg1_len: 21 arg2_len: 27
server_msg:
data:
arg0: idletime=120 arg1: roles="network-admin"
arg2: shell:roles="network-admin"
*Jan 9 05:41:53:117 2011 <switch> TACACS/7/EVENT:
PAM_TACACS: Processing authorization reply packet.
*Jan 9 05:41:53:117 2011 <switch> TACACS/7/EVENT:
PAM_TACACS: Processing authorization reply data, Reply Type: SUCCESS.
*Jan 9 05:41:53:118 2011 <switch> TACACS/7/EVENT:
PAM_TACACS: Succeeding in processing TACACS authorization.
%Jan 9 05:41:53:118 2011 <switch> SSHS/6/SSHLOG: Accepted password for <user> from <tac-plus_server> port 51298 ssh2.
*Jan 9 05:41:53:185 2011 <switch> RBAC/7/ERROR: Failed to set the user role.
%Jan 9 05:41:53:195 2011 <switch> SSHS/6/SSHLOG: User <user> logged out from <tac-plus_server> port 51298.
<endquote>
In this instance I send: roles="network-admin", and shell:roles="network-admin", and i trust me I have tried many permutations of AVpairs.
The 5900 runs "System image version: 7.1.023, Release 2108P03"
The 5900 is configured (tacacs-wise) as:
"
user-interface vty 0 15
authentication-mode scheme
user-role network-admin
idle-timeout 30 0
ssh server enable
undo ssh server compatible-ssh1x
hwtacacs scheme <tac-scheme>
primary authentication <tac-plus_server>
primary authorization <tac-plus_server>
key authentication cipher <keycipher1>
key authorization cipher <keycipher1>
user-name-format keep-original
domain <domain-name>
authentication default hwtacacs-scheme <tac-scheme>
authorization default hwtacacs-scheme <tac-scheme>
domain default enable <domain-name>
"
What AVpairs do i need to send to the switch to give me network-admin privilege?
Regards Søren