Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay Ntlm Chrome/Firefox
Hello,
is it possible to use NTLM with Chrome and Firefox browsers?
I can see the following restriction
com.liferay.portal.security.sso.ntlm.internal.servlet.filter.NtlmFilter.java
method
public boolean isFilterEnabled(
HttpServletRequest request, HttpServletResponse response) {
if (BrowserSnifferUtil.isIe(request) && AuthSettingsUtil.isNtlmEnabled(companyId)) {
How easily to avoid this restriction?
BrowserSnifferUtil.isIe(request) in the method NtlmFilter.isFilterEnabled
Thanks for any help
is it possible to use NTLM with Chrome and Firefox browsers?
I can see the following restriction
com.liferay.portal.security.sso.ntlm.internal.servlet.filter.NtlmFilter.java
method
public boolean isFilterEnabled(
HttpServletRequest request, HttpServletResponse response) {
if (BrowserSnifferUtil.isIe(request) && AuthSettingsUtil.isNtlmEnabled(companyId)) {
How easily to avoid this restriction?
BrowserSnifferUtil.isIe(request) in the method NtlmFilter.isFilterEnabled
Thanks for any help
As I remember this is a feature only available in M$ browsers. It's not a Liferay restriction, it's that non M$ browsers just don't support it.
Hello David, thank you for feedback
I have tried to remove this restriction "BrowserSnifferUtil.isIe(request) " and recompile liferay core source code
- NTLM works fine in Chrome w/o any configurations
- NTLM works fine in Firefox by configuration or addon
https://www.liquidstate.net/enabling-ntlm-authentication-single-sign-on-in-firefox/
Is it possible to remove this restriction on liferay 6.2ga6 and liferay7 w/o changing liferay core source code?
Thanks
I have tried to remove this restriction "BrowserSnifferUtil.isIe(request) " and recompile liferay core source code
- NTLM works fine in Chrome w/o any configurations
- NTLM works fine in Firefox by configuration or addon
https://www.liquidstate.net/enabling-ntlm-authentication-single-sign-on-in-firefox/
Is it possible to remove this restriction on liferay 6.2ga6 and liferay7 w/o changing liferay core source code?
Thanks
Likely not, would probably require an EXT plugin to override core.
You might try opening a bug on issues.liferay.com and include all of your findings. I'm guessing this may be an artifact from earlier versions of the browsers because originally NTLM authentication was limited to M$ browsers. If the others have appropriate support for them now, maybe it's time to loosen this restriction.
The question, of course, is how a browser advertises it's support from NTLM when making requests to the portal. For example, I doubt that any mobile browser (even chrome or firefox) would support NTLM authentication. I don't know enough about windows phone to know if it's browser supports NTLM or not.
You might try opening a bug on issues.liferay.com and include all of your findings. I'm guessing this may be an artifact from earlier versions of the browsers because originally NTLM authentication was limited to M$ browsers. If the others have appropriate support for them now, maybe it's time to loosen this restriction.
The question, of course, is how a browser advertises it's support from NTLM when making requests to the portal. For example, I doubt that any mobile browser (even chrome or firefox) would support NTLM authentication. I don't know enough about windows phone to know if it's browser supports NTLM or not.
I have created jira issue for it
https://issues.liferay.com/browse/LPS-66897
https://issues.liferay.com/browse/LPS-66897
Hi Alex,
Have you customize the NTLM filter in liferay7 to make it work for chrome ? If yes , please let me know how i can do it...
Have you customize the NTLM filter in liferay7 to make it work for chrome ? If yes , please let me know how i can do it...
Hi All,
i have commented the Browsersniffer code in NTLFilter.java class , it is working fine in liferay 7.2 .1 ga2 by customizing the core portal-security-sso-ntlm-impl module
i have commented the Browsersniffer code in NTLFilter.java class , it is working fine in liferay 7.2 .1 ga2 by customizing the core portal-security-sso-ntlm-impl module
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™