Commit
b450414 added logic for reading password from management
when not in file or inline, but it was made conditional on
`response_from_stdin` which is always true! Fix by explicitly
checking for `password_from_stdin`.
Github: fixes OpenVPN/openvpn#1021
Change-Id: I4d46c3672691b159cbd98a17020c4f30782bc202
Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1638
Message-Id: <
20260424161840.5767-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36739.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
*/
if (management && (flags & GET_USER_PASS_MANAGEMENT)
&& management_query_user_pass_enabled(management)
+ && password_from_stdin
&& !(flags & GET_USER_PASS_USERNAME_ONLY))
{
msg(D_LOW,