Only accept NTLM authentication

Builds on the changes made in 890c70d6d6a78541d3e2d2d282bd6fa39325d2dd but adds checks for NTLM at an earlier stage.