When using the either DHCP or STATIC IpMethods the modem manager or device itself negotiates the PPP session, so we need to pass the authentication preferences through to MM.
Signed-off-by: Andrew Bird <[email protected]> --- src/modem-manager/nm-modem-gsm.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/modem-manager/nm-modem-gsm.c b/src/modem-manager/nm-modem-gsm.c index 66b7ad9..e2c4cc4 100644 --- a/src/modem-manager/nm-modem-gsm.c +++ b/src/modem-manager/nm-modem-gsm.c @@ -326,6 +326,7 @@ static GHashTable * create_connect_properties (NMConnection *connection) { NMSettingGsm *setting; + NMSettingPPP *s_ppp; GHashTable *properties; const char *str; @@ -384,6 +385,17 @@ create_connect_properties (NMConnection *connection) if (nm_setting_gsm_get_home_only (setting)) value_hash_add_bool (properties, "home_only", TRUE); + /* For IpMethod STATIC or DHCP */ + s_ppp = nm_connection_get_setting_ppp (connection); + if (s_ppp) { + value_hash_add_bool (properties, "noauth", nm_setting_ppp_get_noauth (s_ppp)); + value_hash_add_bool (properties, "refuse_eap", nm_setting_ppp_get_refuse_eap (s_ppp)); + value_hash_add_bool (properties, "refuse_pap", nm_setting_ppp_get_refuse_pap (s_ppp)); + value_hash_add_bool (properties, "refuse_chap", nm_setting_ppp_get_refuse_chap (s_ppp)); + value_hash_add_bool (properties, "refuse_mschap", nm_setting_ppp_get_refuse_mschap (s_ppp)); + value_hash_add_bool (properties, "refuse_mschapv2", nm_setting_ppp_get_refuse_mschapv2 (s_ppp)); + } + return properties; } -- 1.7.6.5 _______________________________________________ networkmanager-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/networkmanager-list
