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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37684 in the body.
You can then email your comments to 37684 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#37684
; Package
emacs
.
(Wed, 09 Oct 2019 18:32:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
s.bauman <at> northeastern.edu
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 09 Oct 2019 18:32:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
> ****
In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
of 2017-09-20 on lcy01-07, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11804000
System Description: Ubuntu 16.04.6 LTS
Configured using:
`configure --build x86_64-linux-gnu --prefix=/usr
--sharedstatedir=/var/lib --libexecdir=/usr/lib
--localstatedir=/var/lib --infodir=/usr/share/info
--mandir=/usr/share/man --with-pop=yes
--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
--build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
--libexecdir=/usr/lib --localstatedir=/var/lib
--infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
--with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
'CFLAGS=-g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
-D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''
Important settings:
value of $LC_MONETARY: en_US.UTF-8
value of $LC_NUMERIC: en_US.UTF-8
value of $LC_TIME: en_US.UTF-8
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=ibus
locale-coding-system: utf-8-unix
Major mode: Shell
Minor modes in effect:
shell-dirtrack-mode: t
desktop-save-mode: t
display-time-mode: t
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
Change the state of this item.
M-TAB: complete field; RET: enter value
Mark set
Hide or show this option.
Apply settings and save for future sessions.
Apply settings (for the current session only).
scroll-up-command: End of buffer [2 times]
C-c M-p is undefined
Mark set
Making completion list... [2 times]
Load-path shadows:
/usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-info hides /usr/local/share/emacs/site-lisp/psgml-info
/usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-other hides /usr/local/share/emacs/site-lisp/psgml-other
/usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-dtd hides /usr/local/share/emacs/site-lisp/psgml-dtd
/usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-sysdep hides /usr/local/share/emacs/site-lisp/psgml-sysdep
/usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-edit hides /usr/local/share/emacs/site-lisp/psgml-edit
/usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-charent hides /usr/local/share/emacs/site-lisp/psgml-charent
/usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml hides /usr/local/share/emacs/site-lisp/psgml
/usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-api hides /usr/local/share/emacs/site-lisp/psgml-api
/usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-ids hides /usr/local/share/emacs/site-lisp/psgml-ids
/usr/local/share/emacs/24.5/site-lisp/psgml-1.4.1/psgml-parse hides /usr/local/share/emacs/site-lisp/psgml-parse
/usr/local/share/emacs/24.5/site-lisp/filladapt hides /usr/share/emacs24/site-lisp/emacs-goodies-el/filladapt
/usr/local/share/emacs/24.5/site-lisp/browse-kill-ring hides /usr/share/emacs24/site-lisp/emacs-goodies-el/browse-kill-ring
/usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/local/share/emacs/24.5/site-lisp/css-mode hides /usr/share/emacs/24.5/lisp/textmodes/css-mode
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-enc hides /usr/share/emacs/24.5/lisp/nxml/nxml-enc
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-outln hides /usr/share/emacs/24.5/lisp/nxml/nxml-outln
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-ns hides /usr/share/emacs/24.5/lisp/nxml/nxml-ns
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-parse hides /usr/share/emacs/24.5/lisp/nxml/rng-parse
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-mode hides /usr/share/emacs/24.5/lisp/nxml/nxml-mode
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-util hides /usr/share/emacs/24.5/lisp/nxml/nxml-util
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-loc hides /usr/share/emacs/24.5/lisp/nxml/rng-loc
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-maint hides /usr/share/emacs/24.5/lisp/nxml/nxml-maint
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-nxml hides /usr/share/emacs/24.5/lisp/nxml/rng-nxml
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-pttrn hides /usr/share/emacs/24.5/lisp/nxml/rng-pttrn
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-rap hides /usr/share/emacs/24.5/lisp/nxml/nxml-rap
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-glyph hides /usr/share/emacs/24.5/lisp/nxml/nxml-glyph
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-parse hides /usr/share/emacs/24.5/lisp/nxml/nxml-parse
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-uri hides /usr/share/emacs/24.5/lisp/nxml/rng-uri
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-maint hides /usr/share/emacs/24.5/lisp/nxml/rng-maint
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/xmltok hides /usr/share/emacs/24.5/lisp/nxml/xmltok
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-dt hides /usr/share/emacs/24.5/lisp/nxml/rng-dt
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/xsd-regexp hides /usr/share/emacs/24.5/lisp/nxml/xsd-regexp
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-cmpct hides /usr/share/emacs/24.5/lisp/nxml/rng-cmpct
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-match hides /usr/share/emacs/24.5/lisp/nxml/rng-match
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-util hides /usr/share/emacs/24.5/lisp/nxml/rng-util
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-valid hides /usr/share/emacs/24.5/lisp/nxml/rng-valid
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/nxml-uchnm hides /usr/share/emacs/24.5/lisp/nxml/nxml-uchnm
/usr/local/share/emacs/24.5/site-lisp/nxml-mode-20041004/rng-xsd hides /usr/share/emacs/24.5/lisp/nxml/rng-xsd
/usr/local/share/emacs/24.5/site-lisp/timeclock hides /usr/share/emacs/24.5/lisp/calendar/timeclock
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils help-mode misearch multi-isearch mule-util
cal-move cal-menu calendar cal-loaddefs shell pcomplete ibuf-ext package
epg-config html2text jka-compr info rng-xsd xsd-regexp rng-cmpct
rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt
rng-util rng-pttrn nxml-ns nxml-uchnm nxml-mode nxml-outln nxml-rap
nxml-util nxml-glyph xmltok view sh-script smie executable dired
cus-edit cus-start cus-load wid-edit vc-dispatcher vc-svn desktop
frameset warnings byte-opt bytecomp byte-compile cl-extra cconv edmacro
kmacro browse-kill-ring ibuffer autoinsert filladapt time php-mode etags
cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine
cc-vars cc-defs speedbar sb-image ezimage dframe wwp-smart-return
psgml-parse psgml-api psgml-ids psgml-other psgml-sysdep psgml-edit pp
wwp-auto-tag advice help-fns wwp-psgml-faces sgml-mode psgml easymenu
cl-macs cl gv cl-loaddefs cl-lib wwp rnc-mode imenu flymake compile
comint ansi-color ring nxml-enc emacs-goodies-el emacs-goodies-custom
emacs-goodies-loaddefs easy-mmode time-date tooltip electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)
Memory information:
((conses 16 249723 15072)
(symbols 48 31315 0)
(miscs 40 765 638)
(strings 32 54538 8578)
(string-bytes 1 1689180)
(vectors 16 29254)
(vector-slots 8 1072316 89977)
(floats 8 161 734)
(intervals 56 9225 0)
(buffers 960 70)
(heap 1024 83454 1259))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#37684
; Package
emacs
.
(Wed, 09 Oct 2019 20:15:02 GMT)
Full text and
rfc822 format available.
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
Forcibly Merged 35724 35729 37684.
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Wed, 09 Oct 2019 20:16:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#37684
; Package
emacs
.
(Thu, 10 Oct 2019 02:07:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 37684 <at> debbugs.gnu.org (full text, mbox):
Excellent, thank you.
> 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.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 07 Nov 2019 12:24:06 GMT)
Full text and
rfc822 format available.
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.