I am trying to do some Basic Authorization in Javascript but the Server always returns Error 401. It only works if I login with NTLM in my Browser. But I need to access this Server in my Web-App. In the response header it says:
WWW-Authenticate: NTLM
Does this mean that I have to use NTLM? And if so, is there a way to do this in javascript for a Web-App?
i am Sorry, if this is just a stupid question, but I can’t figure out what to do.
btw: The Server is with HTTPS, if that matters 🙂
Yes, it’s looking to do HTTP Basic Authentication with NTLM. You can’t do this out-of-the-box with anything other than Internet Explorer brand browsers. There’s a fire fox plugin that does the LDAP integration however.
Doing NTLM auth is a three-way handshake, you’re best off finding a pre-packaged library to do this for you, as programming the information is actually quite a pain.