-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fallback aaa after unsuccessful ldap #131
Comments
Hi, thanks for clarifying, I somehow misread this, my bad ... please try "authentication fallback = permit" in global or host context. This should propagate the MAVIS error status to the device. Cheers, Marc |
I added I will describe again what goal I want to achieve... ps pss In this case, aaa occurs through ldap, but when ldap is in emergency mode, it does not work fallback local user from local config |
Hi, fallback authentication is different. It will allow a fallback user to log in on backend failure, but it won't tell the device to skip TACACS+ and continue with local users. I just did a quick test using tactrace.pl. With non-available LDAP servers and
Without
Looks fine to me. In the first case the daemon did return AUTHEN/ERROR, in the second AUTHEN/FAIL. The client should handle these status codes accordingly. Cheers, Marc |
This is exactly what I want to achieve. But this does not happen. |
Hi, does adding Cheers, Marc |
Hi, forgot about tactrace.pl: It's in tac_plus-ng/perl and needs a "make install" there. Cheers, Marc |
When ldap is intentionally broken, I enter the correct login and password for t.chernev from the local tacacsplus config debug
adding AAA sucessfull fallback. I got 2 situations where the falback doesn't work debug
And I don't get the error about ldap not being available on timeout, it keeps trying to find the username on ldap even though it's not available mavistest |
Hi, here's a sample config that enables the local password for the "demo" user after the backend fails. The login attempt triggering fallback activation will be rejected. Please note that mirroring a non-local user isn't possible, all you can do is to redirect the password to the backend. Cheers, Marc
|
Hi, after a9c4fdb,
is no longer valid, the login will be rejected only if the password doesn't match, not due the backend failure. Cheers, Marc |
updated after commit a9c4fdb I'm currently using this configuration Everything works except for problems with network connection to the ldap server. Apparently this is due to incorrect processing backend failure |
Hi, please retry with the configuration I've posted above. The key parts of that are
If this doesn't work for you I'll need a minimized configuration and full debug output to reproduce and analyze this issue. Thanks, Marc |
I think I got to the bottom of the problem
let's do 2 tests: 1- test: /usr/local/sbin/tac_plus-ng -fd -1 -1 /etc/tacacs+/tacacs-ng-test.conf eternal lookup in MAVIS Please note that fqdn cor.ya.ru which responds to DNS request
this is not my domain and i decided to put a domain that is not known 2-test: changing
-->
And in this case the server began to respond correctly that it is unavailable and conduct aaa through the demo user |
Hello!
The task is as follows:
AAA priority via ldap server, if ldap is unavailable or in an emergency, then produce AAA for users specified in the global config
With this configuration, in the case of identical users, a request is made through mavis
if ldap is unavailable or in an emergency, If ldap is unavailable, then user t.chernev authorization is performed from the global config.
tac+ng-config.txt
I deliberately break ldap, for testing
setenv LDAP_HOSTS = "cor.VAS.ru:389" -> setenv LDAP_HOSTS = "cor.VAS.ru:38911"
Here's what I get from the before and after tests:
and aaa goes through ldap
after
as soon as I break LDAP, we should connect under the local user specified in the config, but this does not happen and judging by the debug it still accesses mavis
in debug for some reason it turns к MAVIS looking for user t.chernev in MAVIS backend and so on in a circle
debug log attached
log_tac+ng.log
Tell me what I'm doing wrong? I've studied the documentation, but I still can't do it.
The text was updated successfully, but these errors were encountered: