ppp: always use 'noauth'

Since NM is really only a client of the provider's PPP server, and since NM
doesn't have any authentication information to authenticate the remote
peer anyway.  Some providers don't set up their servers to allow clients to
ask for authentication from the remote peer either.
This commit is contained in:
Dan Williams 2009-01-28 11:49:28 -05:00
parent 154f2f4534
commit 468ca67a1f

View file

@ -804,8 +804,12 @@ create_pppd_cmd_line (NMPPPManager *self,
if (nm_setting_ppp_get_baud (setting))
nm_cmd_line_add_int (cmd, nm_setting_ppp_get_baud (setting));
if (nm_setting_ppp_get_noauth (setting))
nm_cmd_line_add_string (cmd, "noauth");
/* noauth by default, because we certainly don't have any information
* with which to verify anything the peer gives us if we ask it to
* authenticate itself, which is what 'auth' really means.
*/
nm_cmd_line_add_string (cmd, "noauth");
if (nm_setting_ppp_get_refuse_eap (setting))
nm_cmd_line_add_string (cmd, "refuse-eap");
if (nm_setting_ppp_get_refuse_pap (setting))