Bug 711903

Summary: OpenVPN cannot do interactive login when started as a service via systemd
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: openvpnAssignee: Steven Pritchard <steve>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: gerald, harald, huzaifas, johannbg, lpoetter, metherid, mschmidt, notting, plautrba, steve
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-18 18:01:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Adam Williamson 2011-06-08 22:30:00 UTC
systemd doesn't seem to handle OpenVPN's optionally-interactive service properly. If you're using a VPN like Red Hat's, you need to enter the password manually when starting the service, as it has a component which changes every time. The OpenVPN service is written to handle this, and prompt you for a username and password, but this doesn't seem to work with systemd: it just fires off the service non-interactively and it fails because the password is incorrect.

If I run openvpn --config /etc/openvpn/redhat.conf --daemon , it works okay.

Comment 1 Michal Schmidt 2011-06-08 23:08:50 UTC
OpenVPN should be enhanced to work with systemd password agents.

See bug 707917 where a similar problem is solved for httpd configured to ask for SSL key passwords.

Comment 2 Gerald Pfeifer 2011-06-18 03:31:33 UTC
This is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=704747 .

Comment 3 Adam Williamson 2011-06-18 18:01:52 UTC

*** This bug has been marked as a duplicate of bug 704747 ***