After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793613 - NTLMv2 responses support
NTLMv2 responses support
Status: RESOLVED OBSOLETE
Product: libsoup
Classification: Core
Component: Misc
2.61.x
Other Linux
: Normal enhancement
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2018-02-19 20:33 UTC by Michal Hrubý
Modified: 2018-09-21 16:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Diff file with modifications for soup-auth-ntlm.c. (9.81 KB, patch)
2018-02-19 20:33 UTC, Michal Hrubý
none Details | Review
Updated diff file with modifications for soup-auth-ntlm.c. (11.50 KB, patch)
2018-05-10 17:12 UTC, Michal Hrubý
none Details | Review

Description Michal Hrubý 2018-02-19 20:33:07 UTC
Created attachment 368585 [details] [review]
Diff file with modifications for soup-auth-ntlm.c.

Hello,

since we set in our AD domain domain-wide policy settings "Send NTLMv2 response only. Refuse LM & NTLM", NTLM auth stopped working for me in Evolution. Evolution uses libsoup to connect to the Exchange Web Service. So I tried to make an implementation of NTLMv2 responses for libsoup. Diff file for soup-auth-ntlm.c file is attached. With this patch, NTLM auth works for me. But it was not tested by anyone else yet. I also don't know, if it didn't break something else. And at last, I am no programmer, this is my first C code ever, so I imagine it might need to be "beautified". If someone could take a look at it, that would be great.

Thanks & Regards
Michal Hrubý
Comment 1 Tomas Popela 2018-04-16 08:08:14 UTC
David, can you please review this patch?
Comment 2 David Woodhouse 2018-04-24 14:42:26 UTC
Seems reasonable in concept. There are a lot of magic numbers which make me a little unhappy; I'd like to see it tidied up a bit. The only real problem I see is the UTF-8 to UTF-16 conversion which only works for characters < 128:

+	while (*user_domain)
+	{
+		*p++ = *user_domain++;
+		*p++ = '\0';
+	}
Comment 3 Michal Hrubý 2018-05-10 17:12:39 UTC
Created attachment 371904 [details] [review]
Updated diff file with modifications for soup-auth-ntlm.c.
Comment 4 Michal Hrubý 2018-05-10 17:15:17 UTC
Hello,

thanks David for the review. I've uploaded an updated version, which I am using right now.

Regards
Michal Hrubý
Comment 5 Michal Hrubý 2018-09-05 11:36:11 UTC
Hello,

is this still active or everything had moved to GitLab? Should I make a merge request there?

Thanks
MH
Comment 6 Tomas Popela 2018-09-05 11:55:22 UTC
It will be easier Michal if you could create the MR on GitLab. Thank you.
Comment 7 GNOME Infrastructure Team 2018-09-21 16:34:24 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libsoup/issues/114.