Fix AttributeError when username is unknown
Check if the username and ntlm password exist during authorization for 802.1X mode.
Also remove string conversion to byte.
Check if the username and ntlm password exist during authorization for 802.1X mode.
Also remove string conversion to byte.