OpenVPN won't send AUTH_FAILED if client-connect plugin exited successfully but script not
|Reported by:||ValdikSS||Owned by:|
|Component:||Generic / unclassified||Version:||2.2.1|
|Severity:||Not set (if unsure, select this one)||Keywords:||client-connect, plugin|
I have radiusplugin and client-connect script. Radiusplugin is used only for accounting and some kind of authorization is managed by client-connect script. If you disable radiusplugin and client-connect script will exit with error code 1, client would be disconnected with AUTH_FAILED, but if radiusplugin client-connect function returns 0 and script returns 1, client would constantly send PUSH_REQUESTs and nothing more.
It can be fixed running client-connect script before plugin's client-connect. Patch included.