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
This commit is contained in:
@@ -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 : "");
|
||||
|
||||
Reference in New Issue
Block a user