GNOME Bugzilla – Bug 794695
Plugin doesn't pass "user" and "remotename" options to pppd
Last modified: 2018-03-29 05:39:36 UTC
Created attachment 370147 [details] [review] [PATCH] Fix passing "user" field and add passing "remotename" Passing of "user" field doesn't work because of bug in code, and passing of "remotename" not implemented.
see also: https://bugzilla.redhat.com/show_bug.cgi?id=1546583
I have no setup to test this, nor am I familiar with pptp in particular. I gladly leave it to somebody else to review/ACK it. Can you explain, why it is correct to set "remotename"? Not how other places in src/nm-pptp-service.c already use NM_PPTP_KEY_GATEWAY setting differently. Why also setting "remotename"? The pppd man page cryptically comments: remotename name Set the assumed name of the remote system for authentication purposes to name. Did you successfully test the patch?
(In reply to Thomas Haller from comment #2) > I have no setup to test this, nor am I familiar with pptp in particular. I > gladly leave it to somebody else to review/ACK it. > > Can you explain, why it is correct to set "remotename"? Not how other places > in src/nm-pptp-service.c already use NM_PPTP_KEY_GATEWAY setting > differently. Why also setting "remotename"? > The pppd man page cryptically comments: > remotename name > Set the assumed name of the remote system for authentication purposes > to > name. > > Did you successfully test the patch? Remotename is used to define server name. For example, I have different certificates for different servers: $ cat /etc/ppp/eaptls-client * server1.org pkcs11:12345 - /usr/local/server1.cer pkcs11:34567 * server2.org pkcs11:67890 - /usr/local/server2.cer pkcs11:90678 and I should pass to pppd which server I'm using with the "remotename" Yes, I successfully tested the patch. After upgrade Fedora 22 to Fedora 27 I got broken VPN to my work. I figured it out, repaired my VPN and sent patches here.
The username fix is clearly correct. The remotename bit also looks OK; the only reservation I have is whether somebody might use a different gateway value than remotename, like if you use an IP address for the gateway, but the certificate uses a domain name for matching. But I think for now, it's probably fine...
merged: https://git.gnome.org/browse/network-manager-pptp/commit/?id=ab6a989f424b84e26167634238392e43d601ff89 thanks!!