{"id":419,"date":"2010-09-08T09:14:43","date_gmt":"2010-09-08T07:14:43","guid":{"rendered":"http:\/\/touk.pl\/blog\/2010\/09\/08\/windows-7-problem-with-login-to-your-web-application\/"},"modified":"2023-03-23T11:51:30","modified_gmt":"2023-03-23T10:51:30","slug":"windows-7-problem-with-login-to-your-web-application","status":"publish","type":"post","link":"https:\/\/touk.pl\/blog\/2010\/09\/08\/windows-7-problem-with-login-to-your-web-application\/","title":{"rendered":"Windows 7 &#8211; problem with login to your web application"},"content":{"rendered":"<p>Have you ever experienced problem with login to your web application that uses JCIFS NtlmHttpFilter ? Does the problem occurs on new Windows platforms (Windows 7 or Vista) and all is fine on Windows Xp ? Finally, why some user with theoretically same system have this problem while other do not report any difficulties ? Technically the answer to your problem is<\/p>\n<p><a href=\"http:\/\/lists.samba.org\/archive\/jcifs\/2008-October\/008227.html\" target=\"_blank\" rel=\"noopener\">here<\/a>. But does it practically means that you will have to rebuild whole authentication process and start using NTLMv2 ? The answer is: it would be a good thing to do ! But if your application is pretty old, problem is selective and only handful of users report authentication problem and finally there is no time and money on the horizon&#8230; well I suppose we can think of small workaround. First solution is pure client side workaround. Force client Windows to use old NTLMv1 with below registry change: HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa Set LmCompatibilityLevel (DWORD) to \u201c1\u201d Second solution. Small application change. Modify your NtlmHttpFilter config (web.xml):<\/p>\n<pre>jcifs.smb.lmCompatibility\r\n    1\r\n<\/pre>\n<p>Although first solution is bullet proof and 100% working it is not very convenient client OS modification. Use it only if second solution fails.<\/p>\n","protected":false},"excerpt":{"rendered":"Have you ever experienced problem with login to your web application that uses JCIFS NtlmHttpFilter ? Does the&hellip;\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[697,321,700,97,98],"class_list":{"0":"post-419","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-development-design","7":"tag-os","8":"tag-security","9":"tag-windows","10":"tag-windows-7","11":"tag-windows-vista"},"_links":{"self":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/comments?post=419"}],"version-history":[{"count":12,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/419\/revisions"}],"predecessor-version":[{"id":15587,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/419\/revisions\/15587"}],"wp:attachment":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/media?parent=419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/categories?post=419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/tags?post=419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}