diff options
author | Giacinto Cifelli <gciofono@gmail.com> | 2020-07-22 06:58:22 +0200 |
---|---|---|
committer | Giacinto Cifelli <gciofono@gmail.com> | 2020-07-24 16:34:40 +0200 |
commit | 4d58278d7ffd65375e93b0da85ca88c08cba96c2 (patch) | |
tree | be5ebc57d133707809473a9d055761ef5dbc04b5 /plugins/cinterion | |
parent | c70b3557184fdf1472ff0cb36e9fd937cc7f9024 (diff) |
changed default authentication algorithm to CHAP
CHAP is almost universal nowadays, and so it is a better default
than PAP
Not changed for uBlox, that prefers an error if not specified,
and for Huawei, which uses NONE with user/pwd and has 2 CHAP choices
Diffstat (limited to 'plugins/cinterion')
-rw-r--r-- | plugins/cinterion/mm-broadband-bearer-cinterion.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/cinterion/mm-broadband-bearer-cinterion.c b/plugins/cinterion/mm-broadband-bearer-cinterion.c index b3b1d240..676bbbd9 100644 --- a/plugins/cinterion/mm-broadband-bearer-cinterion.c +++ b/plugins/cinterion/mm-broadband-bearer-cinterion.c @@ -233,9 +233,9 @@ build_auth_string (MMBroadbandBearerCinterion *self, if (!has_user && !has_passwd) return NULL; - /* If user/passwd given, default to PAP */ - mm_obj_dbg (self, "APN user/password given but no authentication type explicitly requested: defaulting to 'PAP'"); - encoded_auth = BEARER_CINTERION_AUTH_PAP; + /* If user/passwd given, default to CHAP (more common than PAP) */ + mm_obj_dbg (self, "APN user/password given but no authentication type explicitly requested: defaulting to 'CHAP'"); + encoded_auth = BEARER_CINTERION_AUTH_CHAP; } quoted_user = mm_port_serial_at_quote_string (user ? user : ""); |