-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subdomains #1
Comments
Hey. Sorry for the somewhat late reply. I have a hunch about the problems you're encountering, but I haven't had the time to test it out. One of the references I used when I put this together, http://www.innovation.ch/personal/ronald/ntlm.html states that the NTLM hostname should not be a FQDN (fully qualified domain name): "The host name is only the host name, not the FQDN (e.g. just "GOOFY", not "GOOFY.DISNEY.COM").". When looking at my code (line 239): Hopefully, this will address the problem. TL;DR: Bad news: I think you have found a bug in my implementation. Good news: It's probably quite easy to fix. |
Sorry I don't think you have understood my problem, my fault for not explaining it properly. |
Hey, OK, no worries. I have to look into the NTLM spec here, regarding usernames and domains. |
Hi. Is there still an issue here? I'd like to use this library in my project and I'm not sure if this works :) |
Hey. That would be my guess. I haven't gotten around to fix this yet. In fact I haven't even looked into this enough to be able to determine if this is an actual bug or if this is something on the server side (e.g. https://support.microsoft.com/en-us/kb/896861). However, this will only affect you if you plan on using active directory subdomains. When I built ntlm.js I didn't even have a full active directory to authenticate against, I used a standard IIS-instance with NTLM enabled. |
Ok, Thanks for clarification. |
This works fine for top level domain accounts but I'm having trouble getting it to work with sub domains.
For example, using the credentials Ntlm.setCredentials('TEST.COM', 'JACK', 'JACK') works fine.
However using the credentials Ntlm.setCredentials('SUB.TEST.COM', 'JACK', 'JACK') tells me my credentials are wrong even though I know they are definitely right.
I appreciate any help in advance.
The text was updated successfully, but these errors were encountered: