Hi Marc.
We have an interesting problem.
In Active Directory(AD) there are two groups that are identical in all characteristics.
Software_Tacacs_NET-GD-Write
Software_Tacacs_ALT-write
User1 is in the group Software_Tacacs_NET-GD-Write
User2 is in the group Software_Tacacs_ALT-write
The equipment is located in the network
10.122.12.0/24Users have no problems accessing via CLI.
user1 logs into cisco via https without problems
user2 can't log in to cisco via https. There is an invitation to enter login and password. Then nothing happens.
I can't understand where or what the problem is
Here is part of the config from TACACS-NG
mavis module = external {
setenv LDAP_SERVER_TYPE = "microsoft"
setenv AD_GROUP_PREFIX = "Software_Tacacs_"
setenv UNLIMIT_AD_GROUP_MEMBERSHIP = 1
#setenv REQUIRE_AD_GROUP_PREFIX = 1
setenv FLAG_USE_MEMBEROF = 1
exec = /usr/local/lib/mavis/
mavis_tacplus_ldap.pl }
login backend = mavis
user backend = mavis
pap backend = mavis
net MY-ORG_NET {
net GD_NET {
address =
172.31.0.0/16 }
net ALT_NET {
address =
10.122.0.0/16 address =
172.31.75.132/32 }
}
device MY-ORG_DEV {
key = "zzzzz"
welcome banner = "\nWe are watching you! We know your ip: %%c\n"
failed authentication banner ="\n%%u password is incorrect or access denied!!!\n"
enable 15 = clear secret
}
device ALT_DEV {
address =
10.122.0.0/16 parent = MY-ORG_DEV
}
profile prof_readwrite {
script {
if (service == shell) {
if (cmd == "") set priv-lvl = 15
permit
}
}
}
profile prof_read {
script {
if (service == shell) {
if (cmd == "") {
set priv-lvl = 15
permit
}
if (cmd =~ /^ping/) permit
if (cmd =~ /^tracert/) permit
if (cmd =~ /^display/) permit
if (cmd =~ /^show/) permit
if (cmd =~ /^screen-/) permit
}
}
}
group NET-GD-Write {
}
group NET-GD-Read {
}
group ALT-read {
}
group ALT-write {
}
ruleset {
rule GD_Read_Write {
enabled = yes
script {
if nas == MY-ORG_DEV {
if group == NET-GD-Write {
profile = prof_readwrite
permit
}
}
}
}
rule GD_read {
enabled = yes
script {
if nas == MY-ORG_DEV {
if group == NET-GD-Read {
profile = prof_read
permit
}
}
}
}
rule ALT_Write {
enabled = yes
script {
if (nas == ALT_DEV && nac == ALT_NET) {
if group == ALT-write {
profile = prof_readwrite
permit
}
}
}
}
rule ALT_read {
enabled = yes
script {
if (nas == ALT_DEV && nac == ALT_NET) {
if group == ALT-read {
profile = prof_read
permit
}
}
}
}
}