<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Autologin with kerberos SPNEGO</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=4891610" />
  <subtitle>Autologin with kerberos SPNEGO</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=4891610</id>
  <updated>2026-05-20T15:10:59Z</updated>
  <dc:date>2026-05-20T15:10:59Z</dc:date>
  <entry>
    <title>RE: Autologin with kerberos SPNEGO</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=15674466" />
    <author>
      <name>Jayson Ilagan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=15674466</id>
    <updated>2012-08-17T02:11:23Z</updated>
    <published>2012-08-17T02:11:23Z</published>
    <summary type="html">We successfully implemented this configuration. &lt;br /&gt;&lt;br /&gt;LIFERAY using CAS + SPNEGO + Kerberos to authenticate over LDAP&lt;br /&gt;&lt;br /&gt;We are using:&lt;br /&gt;&lt;br /&gt;Microsoft Windows Server 2008 R2 (Application Server)&lt;br /&gt;Active Directory&lt;br /&gt;Liferay 6.1 CE&lt;br /&gt;CAS 3.4.11&lt;br /&gt;Tomcat 7.0&lt;br /&gt;JRE 1.6.19 &lt;br /&gt;&lt;br /&gt;1. First step, you must have or someone have access with the Domain Controller to set SPN at the same time creating of keytab file this is necessary to have trust link between the CAS server and KDC.&lt;br /&gt;&lt;br /&gt;2. Prepare needed files such as: login.conf, kbr5.conf., Look for sample configuration then configure it as fit to your needs.&lt;br /&gt;&lt;br /&gt;3. Configuration of your CAS. You need to configure your login-webflow.xml, cas-servlet, deployerConfigContext and lastly pom.xml that is located in Maven.&lt;br /&gt;You also need to add necessary jar file to your CAS lib. That is being used in all the configuration you&amp;#39;ve done in CAS. &lt;br /&gt;&lt;br /&gt;4. Configure your Liferay to CAS.&lt;br /&gt;&lt;br /&gt;That all the step we did to accomplish this.</summary>
    <dc:creator>Jayson Ilagan</dc:creator>
    <dc:date>2012-08-17T02:11:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: Autologin with kerberos SPNEGO</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11693353" />
    <author>
      <name>João Figueiredo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11693353</id>
    <updated>2011-12-06T13:44:13Z</updated>
    <published>2011-12-06T13:44:13Z</published>
    <summary type="html">Hello Rui,&lt;br /&gt;&lt;br /&gt;Did you found any solution?</summary>
    <dc:creator>João Figueiredo</dc:creator>
    <dc:date>2011-12-06T13:44:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Autologin with kerberos SPNEGO</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4897406" />
    <author>
      <name>Bijan Vakili</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4897406</id>
    <updated>2010-04-26T15:29:56Z</updated>
    <published>2010-04-26T15:29:56Z</published>
    <summary type="html">Rui,&lt;br /&gt;&lt;br /&gt;Have you tried stepping through the CASAutoLogin code line by line?&lt;br /&gt;&lt;br /&gt;Seeing Liferay in action and stepping through the code will help alot. The following websites show step by step instructions on how to connect to the Java Debugger attached to the JVM running Liferay to see Liferay in action:&lt;br /&gt;&lt;br /&gt;http://www.liferay.com/community/wiki/-/wiki/Main/Eclipse &lt;br /&gt;http://unorganizedmachines.com/site/software-and-technology/34-software-development/80-liferay-portlet-debugging-the-easy-way&lt;br /&gt;&lt;br /&gt;Or for more results, search for &amp;#34;development liferay debugger&amp;#34;:&lt;br /&gt;&lt;br /&gt;http://www.google.com/search?hl=en&amp;amp;safe=off&amp;amp;q=development+liferay+debugger&amp;amp;aq=f&amp;amp;aqi=&amp;amp;aql=&amp;amp;oq=&amp;amp;gs_rfai=&lt;br /&gt;&lt;br /&gt;Thanks.</summary>
    <dc:creator>Bijan Vakili</dc:creator>
    <dc:date>2010-04-26T15:29:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: Autologin with kerberos SPNEGO</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4896390" />
    <author>
      <name>Rui Martins</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4896390</id>
    <updated>2010-04-26T11:28:21Z</updated>
    <published>2010-04-26T11:28:21Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;I took a look at CASAutoLogin and the interesting part is&lt;br&gt;&lt;pre&gt;&lt;code&gt;
HttpSession session  = request.getSession();
String login = (String)session.getAttribute(CASFilter.LOGIN);
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Following that example, I printed the attributes available at the session, and I only got one attribute - HTTPS_INITIAL. It seems that the spnego http filter is not passing the HttpServletRequest correctly to my AutoLogin class. Perhaps it's a configuration problem?&lt;br&gt;&lt;br&gt;I only put the reference to spnego in the web.xml file and changed auto.login.hooks to call my class.&lt;br&gt;&lt;br&gt;Am I missing something?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Rui Martins</dc:creator>
    <dc:date>2010-04-26T11:28:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Autologin with kerberos SPNEGO</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4892386" />
    <author>
      <name>Bijan Vakili</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4892386</id>
    <updated>2010-04-24T03:32:42Z</updated>
    <published>2010-04-24T03:32:42Z</published>
    <summary type="html">Take a look at the CASAutoLogin class at the following URI:&lt;br /&gt;&lt;br /&gt;http://svn.liferay.com/browse/portal/trunk/portal-impl/src/com/liferay/portal/security/auth/CASAutoLogin.java?r=HEAD&lt;br /&gt;&lt;br /&gt;Thanks.</summary>
    <dc:creator>Bijan Vakili</dc:creator>
    <dc:date>2010-04-24T03:32:42Z</dc:date>
  </entry>
  <entry>
    <title>Autologin with kerberos SPNEGO</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4891609" />
    <author>
      <name>Rui Martins</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=4891609</id>
    <updated>2010-04-23T17:19:06Z</updated>
    <published>2010-04-23T17:19:06Z</published>
    <summary type="html">I&amp;#39;m trying to implement automatic login in Liferay using SPNEGO (http://spnego.sourceforge.net/) for kerberos authentication on Tomcat. &lt;br /&gt;&lt;br /&gt;I followed the instructions and changed conf/web.xml accordingly to put kerberos working properly with SPNEGO - the authentication procedure is working fine.&lt;br /&gt;&lt;br /&gt;Now, I want to be able to login automatically with the user authenticated from SPNEGO. I created my own com.liferay.portal.security.auth.AutoLogin implementation and added a reference to it in auto.login.hooks. I know my class is being called as I can output to the logger. &lt;br /&gt;&lt;br /&gt;The problem is that I can&amp;#39;t retrieve the authenticated user name. Shouldn&amp;#39;t the user be returned when I call  (HttpServletRequest) getUserPrincipal()? It&amp;#39;s returning null.&lt;br /&gt;&lt;br /&gt;What&amp;#39;s the problem with this setup? Do I have to override some other class, or change the configuration?&lt;br /&gt;&lt;br /&gt;Thanks in advance.</summary>
    <dc:creator>Rui Martins</dc:creator>
    <dc:date>2010-04-23T17:19:06Z</dc:date>
  </entry>
</feed>
