Skip to contentSkip to conversation

Document --daemon changes and consequences (--askpass, --auth-nocache).

PATCH In review Gert Doering 2 participants 3 messages Jul 14, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Document --daemon changes and consequences (--askpass, --auth-nocache).

Trac #574, #576

---
 doc/openvpn.8 | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
doc/openvpn.8 +16 -0
index 3eb2493..0692a80 100644
@@ -2208,6 +2208,22 @@ openvpn command for a fairly reliable indication of whether the command
 has correctly initialized and entered the packet forwarding event loop.
 
 In OpenVPN, the vast majority of errors which occur after initialization are non-fatal.
+
+Note: as soon as OpenVPN has daemonized, it can not ask for usernames,
+passwords, or key pass phrases anymore.  This has certain consequences,
+namely that using a password-protected private key will fail unless the
+.B \-\-askpass
+option is used to tell OpenVPN to ask for the pass phrase (this
+requirement is new in 2.3.7, and is a consequence of calling daemon()
+before initializing the crypto layer).
+
+Further, using
+.B \-\-daemon
+together with
+.B \-\-auth-user-pass
+(entered on console) and
+.B \-\-auth-nocache
+will fail as soon as key renegotiation (and reauthentication) occurs.
 .\"*********************************************************
 .TP
 .B \-\-syslog [progname]
Signature · 1 line
2.3.6
#1 lore raw
Quoted 40 lines

From: Gert Doering [mailto:[email protected]...]
Sent: dinsdag 14 juli 2015 9:10

Trac #574, #576

---
 doc/openvpn.8 | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
doc/openvpn.8 +0 -0
index 3eb2493..0692a80 100644
@@ -2208,6 +2208,22 @@ openvpn command for a fairly reliable indication

of whether the command
has correctly initialized and entered the packet forwarding event loop.

In OpenVPN, the vast majority of errors which occur after
initialization are non-fatal.

doc/openvpn.8 +16 -1
+
+Note: as soon as OpenVPN has daemonized, it can not ask for usernames,
+passwords, or key pass phrases anymore.  This has certain consequences,
+namely that using a password-protected private key will fail unless the
+.B \-\-askpass
+option is used to tell OpenVPN to ask for the pass phrase (this
+requirement is new in 2.3.7, and is a consequence of calling daemon()
+before initializing the crypto layer).
+
+Further, using
+.B \-\-daemon
+together with
+.B \-\-auth-user-pass
+(entered on console) and
+.B \-\-auth-nocache
+will fail as soon as key renegotiation (and reauthentication) occurs.
 .\"*********************************************************
 .TP
 .B \-\-syslog [progname]
--
Quoted 1 line

2.3.6

ACK

-Steffan

#2 lore raw
In reply to Gert Doering

Patch has been applied to the master and release/2.3 branch.

commit b6ec7fbe96f4e200b8962ef6bb572bbb2228133e (master) commit dda40aedfb87d77afcef52376cd3e4778ba0370b (release/2.3)

Author: Gert Doering
Date:   Tue Jul 14 09:09:54 2015 +0200
     Document --daemon changes and consequences (--askpass, --auth-nocache).

     Signed-off-by: Gert Doering <[email protected]...>
     Acked-by: Steffan Karger <[email protected]...>
     Message-Id: <[email protected]...>
     URL: http://article.gmane.org/gmane.network.openvpn.devel/9923

--
kind regards,

Gert Doering