Hi, On Sun, Mar 29, 2020 at 7:58 PM Selva Nair <selva.n...@gmail.com> wrote: > > Hi, > > On Sun, Mar 29, 2020 at 7:13 PM Jonathan K. Bullard <jkbull...@gmail.com> > wrote: <snip> > > On a Mac using Tunnelblick (which uses the management interface with > > management-query-passwords enabled), if the auth-user-pass file > > contains only the password (and a LF), then the following occurs: > > > > neither stdin nor stderr are a tty device and you have neither a > > controlling tty nor systemd - can't ask for 'Enter Auth Password:'. > > If you used --daemon, you need to use --askpass to make > > passphrase-protected keys work, and you can not use --auth-nocache. > > Exiting due to fatal error > > In those cases it looks obviously wrong to use auth-file with username > only, and I would consider that a user error. The purpose of > my patch was to handle only some naive usages where the user > expects the console prompt to get automatically directed to the GUI. > Indeed, that does happen (from user's POV) for all cases except user-pass > with only username in a file. > > But I agree, we should do something like this for other GUIs such as > tunnelblick too. > > > > > Note: Tunnelblick uses the "--log" option to redirect output to a > > file. I am assuming that's what is meant by "stdout is redirected to a > > log file". > > Yes, that's right. However, that logic wont be proper on OS-X, would it? > Command line users who use --log can still see password > prompt on /dev/tty. We'll be breaking that behaviour.
If the OS X command line user was using --management-query-passwords (as Tunnelblick does), they wouldn't see the password prompt on /dev/tty, would they? Your patch checks for that, so wouldn't you only need to change && defined(_WIN32) to something like && (defined(_WIN32) || TARGET_OSX) (and add OS X to the comment at the start of the patch). _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel