Hello,
I am using a custom script for verifying each client by a username and a password.
For this, I use this in my server config:
auth-user-pass-verify <my custom script> via-env
The script returns exit code 0 if everything is OK, and 1 if error (password not correct etc.).
The client config includes:
auth-user-pass
auth-retry interact
I understand that the second line is required so, when the authentication fails, the username / password authentication window will reappear.
But in my case, it doesn't.
When an authentication fails, this is the server output:
<date> <client IP> Re-using SSL/TLS context
<date> <client IP> WARNING: Failed running command (--auth-user-pass-verify): returned error code 1
<date> <client IP> TLS Auth Error: Auth Username/Password verification failed for peer
On the client side, the last message outputed is:
WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
And the window just "waits", no username / password authentication window reappearing.
I would like the window to reappear. Please help.