Hello
My AAA authentication needs attribute-value
For example, in tacacs authorization, I want the tacacs server to respond with a groups attribute that I've arbitrarily set instead of priv-lvl = 15.
Below is the packet when set to tacacs+.
I set the user as follows in tacacs+ config. Then the tacacs server will respond as above packet.
user = 1234 {
pap = cleartext "1234"
service = exec {
groups = network-admin,network-debug
}
}
However, I don't know how to set this configuration in cfg in tac_plus-ng.
this is my tac_plus-ng config
id = spawnd {
listen = { address = 0.0.0.0 port = 49 }
}
id = tac_plus-ng {
host IPv4only {
address =
0.0.0.0/0 key = 1234
}
profile netadmin {
script {
if (service == shell) {
if (cmd == "")
set priv-lvl = 15
permit
}
}
}
group admin
user 1234 {
password {
login = clear 1234
pap = clear 1234
chap = clear 1234
}
member = admin
}
ruleset {
rule {
script {
if (member == admin) { profile = netadmin permit }
}
}
}
}
plz help me