Closed sanjmonkey closed 3 months ago
Hi Sandy,
I hadn't thought of that, thanks for reporting. Could you please check whether ldapmavis.patch fixes that issue? I think that's sufficient to properly propagate the error status back to tac_plus-ng.
Thanks,
Marc
That patch works perfectly, thanks Marc.
I confirm that now when using ldapmavis-mt and simulating LDAP failure:
Nice!
Hi Sandy,
thanks for testing! I'll commit that patch.
Cheers,
Marc
Hi Marc!
I have a working tac_plus-ng mavis external configuration using
mavis_tacplus-ng_ldap.pl
and am looking to migrate to external-mt using libmavis-mt to test for any performance gains, and also to support non-blocking on slow to respond backends such as 2fa. However, I've noticed thefallback
behaviour doesn't seem to work when using external-mt / libmavis-mt. Heres a snip of config:Example snip of working with external:
Debug output for an authentication request for the fallbackuser when LDAP not available shows:
And everything is fine...
Example snip of not working fallback with external-mt:
Debug output for an authentication request for the fallbackuser when LDAP not available shows:
And we dont get our fallbackuser logged in.
I haven't checked other parts of libmavis-mt in much depth yet, but just a guess, could this be a hangup of not implementing TAC_PLUS_AUTHEN_STATUS_ERROR in libmavis-mt, as mentioned in https://github.com/MarcJHuber/event-driven-servers/issues/71 ?
Love the projects! ❤️
Cheers Sandy