GNU bug report logs -
#37684
24.5; comint-password-prompt-regexp and openvpn
Previous Next
Reported by: s.bauman <at> northeastern.edu
Date: Wed, 9 Oct 2019 18:32:02 UTC
Severity: minor
Tags: fixed, patch
Merged with 35724,
35729
Found in version 24.5
Fixed in version 27.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 37684 <at> debbugs.gnu.org (full text, mbox):
Syd Bauman <s.bauman <at> northeastern.edu> writes:
>>From `emacs -Q -nw`:
>
> 1) M-x shell
> 2) In *shell* buffer, issue `openvpn`
> 3) Password for sudo is appropriately collected in minibuffer w/o
> echoing, but password for openvpn is prompted for in the *shell*
> buffer and echoed. The prompt that is not recognized by
> comint-watch-for-password-prompt is "Enter Auth Password: ".
> 4) I have tried customizing comint-password-prompt-regexp, and if I set
> it to just "Enter Auth Password: ", it works in that the password is
> collected in the minibuffer w/o echoing. However, there are control
> characters fore and aft which should probably be stripped.
> ('^[[0;1;39m' before and '^[[0m' after the prompt characters.)
>
> Sample session
> ------ -------
> $ sudo openvpn --config /home/syd/.config/OpenVPN/RAC_ambupro/AmbuPro.ovpn
> $ [sudo] password for syd:
> > Wed Oct 9 13:45:15 2019 OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jan 9 2019
> > Wed Oct 9 13:45:15 2019 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
> $ Enter Auth Username: sbauman
> > *******
> $ Enter Auth Password: asdf
> > ****
Thanks for the report. This is a duplicate of Bug#35724 that has
already been fixed on master. I'm merging these bugs and closing.
commit f6d3005069551f3ed5817078a095b868007bf12d
Author: Matthew Bauer <mjbauer95 <at> gmail.com>
Date: Mon May 13 18:39:32 2019 -0400
Add "Enter Auth" prompt handling for OpenVPN (Bug#35724)
* lisp/comint.el (comint-password-prompt-regexp): Allow "Enter Auth"
at the beginning.
Best regards,
Stefan Kangas
This bug report was last modified 5 years and 224 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.