- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 837
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
NTLM AUTH failure causes subsequent PLAIN AUTH attempt #532
Comments
Can you get a log of another client successfully authenticating? Without that, I don't think I'll ever be able to figure out the problem because I won't have enough information to solve it. There's no way for me to reproduce this problem, obviously, and the unit tests for NTLM support all pass based on the examples provided in the NTLM documentation. |
I'll probably also need your username and password so that I can actually test that whatever changes I make will result in the correct output. If you have access to create accounts on your server, you could simply create a new (dummy) account and send me those credentials instead (along with a successful NTLM authentication log for said account). |
…ype3Messages Also don't override the Domain if the user-supplied domain iss empty. *May* fix issue #532
I've just committed a patch that might fix the issue after closely auditing all of the code, but I honestly have no idea if it'll actually fix things or not. Please download the source code, build it, and test it out for me. And please please please get back to me. No one ever seems to get back to me... :-\ |
Many thanks, I'm working on trying to get a working example for you also (but it's difficult to do so!), will revert asap. |
Hi I've asked a developer to compile it up but he's getting the error: Severity Code Description Project File Line Suppression State |
He needs to recursively clone MailKit. Or, do this:
|
Hi thanks for that. OK we've got it built but unfortunately it didn't resolve the problem. However we did get an error which I believe explains why the second attempt to authenticate using PLAIN fails (I appreciate it doesn't help with the reason of why the AUTH NTLM fails in the first place). The error we got was:
What we believe is happening is that after the AUTH NTLM attempt has failed the socket is getting torn down, but the AUTH PLAIN is still trying to stream using the same socket. Does that make sense? |
Yea, the server is dropping the connection on a failed authenticate command. |
Do you have a domain in your username? |
No it's just: forename.surname |
Okay, thanks. I was wondering if maybe the code wasn't handling domains in usernames properly or something. Guess not. |
FWIW, you can work around this by doing |
Yes thank you, we have used that as a work around, I just thought that though the NTLM auth fails it would still then try PLAIN auth and succeed there, and so it wouldn't require the workaround. |
Ideally that would be the case, and that normally works, but it seems Exchange doesn't allow fallback. Or at least not if NTLM is tried... |
I've disabled NTLM auth. |
Hi,
Using 1.16.1 of Mailkit
This is the same issue as #265 but as we are using 1.16.1 I don't think this is fixed?
When connecting to a customers hosted Exchange 2013 server we see authentication errors. Error reported is
I know absolutely the username/password are correct, and that the certificates on the server are correct as I have verified this from a Linux server using the 'openssl s_client' and 'mutt' commands.
Protocol log
However as we already know if I exclude NTLM then it works
Hopefully have included all the necessary client/server responses as you asked for in #265?
Thank you.
The text was updated successfully, but these errors were encountered: