留言板

NTLM - Direct Autologin

thumbnail
Yves Legrand,修改在12 年前。

NTLM - Direct Autologin

Regular Member 帖子: 156 加入日期: 09-11-18 最近的帖子
Hello,

i am using Liferay 6.0.6 CE. I have configured Liferay to use NTLM with LDAP for authentication. I am using a Windows 7 64Bit OS.
This works fine when clicking on the Sign in Link at the right upper corner.

I want Liferay users to be authenticated whenever they enter the portal.

So i have adjusted the NTLM-Filter:


	<filter-mapping>
		<filter-name>SSO Ntlm Filter</filter-name>
		<!-- <url-pattern>/c/portal/login</url-pattern>  -->
		<url-pattern>/*</url-pattern>
		<dispatcher>REQUEST</dispatcher>
		<dispatcher>FORWARD</dispatcher>
	</filter-mapping>


and the corresponding java class with


//if ((path != null) &amp;&amp; path.endsWith("/login")) {
	if (path != null) {
		NtlmUserAccount ntlmUserAccount = null;
		if (session != null) {
			ntlmUserAccount = (NtlmUserAccount)session.getAttribute(WebKeys.NTLM_USER_ACCOUNT);
			}
...


What i get is a dialog where i have to enter my account data again and again when opening the portal.
Maybe i have missed someting? Anyone with the same problem?

Greetings,
Yves
Shuaib K,修改在12 年前。

RE: NTLM - Direct Autologin

New Member 帖子: 19 加入日期: 11-8-6 最近的帖子
I did have a similar problem but resolved it by using a computer/machine account. Check this link .