If username is not specified, set authType to No PAP / No CHAP so that the code is backward compatible.