Hi Jan,
On 26.09.2023 02:29, Jan Kayser wrote:
> Junos (192.168.2.6):
> - authentication and "authorisation" works
> - Junos doesn't actually use Tacacs authorisation, it applies
permissions according to local-user-name, which doesn't appear in the
debug logs at all?
> - line 235,238 show authorisation fail, why is that?
good catch, I'll push a fix. Forgot to map "groups" to "member", please
git pull and retry.
diff --git a/tac_plus-ng/config.c b/tac_plus-ng/config.c
index 7519afe..c3a8fac 100644
--- a/tac_plus-ng/config.c
+++ b/tac_plus-ng/config.c
@@ -3739,6 +3739,9 @@ static struct mavis_cond
*tac_script_cond_parse_r(struct sym *sym, tac_realm * r
if (m->u.s.token == S_clientname)
parse_error(sym, "REGEX matching isn't supported
for '%s'", codestring[m->u.s.token]);
+ if (m->u.s.token == S_group)
+ m->u.s.token = S_member;
+
m->type = S_regex;
sym->flag_parse_pcre = 1;
sym_get(sym);
Thanks,
Marc