Tuesday, May 12, 2015

Intermittently prompted for credentials while using NTLM SSO in liferay,causes and work arounds

The following will be the causes for Intermittently prompted for credentials while using NTLM SSO in liferay.


6 comments:

  1. Hi, i have big problem w ntlm and liferay 6.2 ce ga 2.
    In liferay i configured ldap and it is OK.
    Now i configure NTLM and i think it is not working. No error logs, nothing.

    in portal-ext.properties i have:
    auto.login.hooks=com.liferay.portal.security.auth.NtlmAutoLogin
    company.security.auth.type=screenName

    ntlm.auth.enabled=true
    ntlm.auth.domain=AB
    ntlm.auth.domain.controller=ip
    ntlm.auth.domain.controller.name=ab-domain
    ntlm.auth.negotiate.flags=0x600FFFFF
    ntlm.auth.service.account=XXX$@bleh.local
    ntlm.auth.service.password=************

    In AD we have computer account CN=Computers which name is XXX$.
    My users are in OU=AB

    now i open IE, i have windows window to login. No matter what i do, at the end result is the same. Blank empty IE and no error in logs. In firebug i see only 401 Not authorized.

    liferay site redirect to http://www.liferay.com/community/wiki/-/wiki/Main/Integration+with+NTLM+plus+ADS but there is no images available.

    Can You help me?
    Please contact me, we can pay for your time.

    ReplyDelete
  2. Hi,

    First check where you have connected properly with LDAP?

    you have to check where you have done proper LDAP configuration.
    if you have ldap configuration,you should login with out ntlm

    then enable NTLM ,check you are able to do or not

    ReplyDelete
  3. Hi,

    I did the same step with @Konrad Czerkas

    I could login by LDAP successfully. But when I enable NTLM then facing the issue:

    07:07:49,405 ERROR [http-bio-8080-exec-11][NtlmFilter:235] Unable to perform NTLM authentication
    com.liferay.portal.security.ntlm.NtlmLogonException: Session key negotiation failed
    at com.liferay.portal.security.ntlm.NetlogonConnection.connect(NetlogonConnection.java:128)
    at com.liferay.portal.security.ntlm.Netlogon.logon(Netlogon.java:49)
    at com.liferay.portal.security.ntlm.NtlmManager.authenticate(NtlmManager.java:69)
    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter.processFilter(NtlmFilter.java:230)
    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204)
    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109)
    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:169)
    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59)

    Kindly help me :(

    ReplyDelete
  4. I Love your article. You cant visit my website : chaitib

    ReplyDelete