<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8520319635604097525</id><updated>2025-10-11T01:43:47.003-07:00</updated><title type='text'>Liferay Portal Blog</title><subtitle type='html'>The best of breed open source portal written in Java, following most of the standards.&#xa;&#xa;Lot of people asked me that they face problems integrating liferay with LDAP and CAS, so here I tried some thing and made it work in a post here.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://liferayintegrator.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8520319635604097525/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://liferayintegrator.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mayank</name><uri>http://www.blogger.com/profile/17208637575951494887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Q8tNKOxG7DFS1x6TwpWVljWBql_8O2zwBDh2pvIGI_Km2Su529seKcnQB212GcN4m9I7KNvy3joiyKjjRC4RMJVY1N1-7rmKJVRnMoxtINYrHs5K640_wp3TKnChxg/s220/09a0430.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8520319635604097525.post-7072699561930086820</id><published>2010-06-10T10:00:00.000-07:00</published><updated>2010-06-22T09:31:04.413-07:00</updated><title type='text'>Liferay Portal 6 Enterprise Intranets -Book Review</title><content type='html'>&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Just to guide you on book &amp;nbsp; &lt;a href=&quot;https://www.packtpub.com/liferay-portal-6-enterprise-intranets/book&quot;&gt;Liferay Portal 6 Enterprise Intranets&lt;/a&gt;, whether what you are looking for is in there or not :)&lt;/span&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Chapter 1:Introducing Liferay for your Intranet&lt;/span&gt;&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This chapter describes what all you can do using Liferay, along with giving a glance on the standards that are followed in Liferay architecture.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1) Creation of Discussion boards&lt;br /&gt;
&lt;br /&gt;
2) Wiki&#39;s for collaborative document&#39;s creation&lt;br /&gt;
&lt;br /&gt;
3) Blog&#39;s for team and individuals: Where in team don&#39;t need to be technical, they can update the contents using WYSIWYG editors.&lt;br /&gt;
&lt;br /&gt;
4) Document store for managing and publishing document;s with role based access control&lt;br /&gt;
&lt;br /&gt;
5) Workflow to control document publishing&lt;br /&gt;
&lt;br /&gt;
6) Integration of social office , social networking site&#39;s for better collaboration and one point view.&lt;br /&gt;
&lt;br /&gt;
7) Shared calendar&#39;s.&lt;br /&gt;
&lt;br /&gt;
8) SOA based support to integrate with other third party system and have single point of &lt;br /&gt;
&lt;br /&gt;
access to all systems in a portal.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Chapter 2: Setting Up a Home Page and Navigation Structure for the Intranet&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1) Setting up Liferay portal in windows / Linux environment with installation steps.&lt;br /&gt;
&lt;br /&gt;
2) Setting up production environment, here the book talks about JVM parameters to be set up&lt;br /&gt;
&lt;br /&gt;
for production environment but never explains why? or what those parameters mean.&lt;br /&gt;
&lt;br /&gt;
3) Good explanation of portal.properties which can be extended for the customization of the portal, which gives an easy way for administrators to modify or have the customization done.&lt;br /&gt;
&lt;br /&gt;
4) Describes the way of creating default database connections via JNDI and populating the DB with default data. The good thing that I found here is how to configure &quot;&quot;NULL IS NULL&quot; check. &lt;br /&gt;
&lt;br /&gt;
5) Describes the way to configure the mail&#39;s [SMTP/ IMAP /POP3] server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are description of portal.properties / portal-ext.properties. Somehow I miss a screenshot&lt;br /&gt;
&lt;br /&gt;
of the directory structure when the portal is installed, so that I can easily map the file&#39;s with the structure that the text written indicates to.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Chapter 3: Bringing in users&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This chapter talks about users accessing the built system and controlling their authentication and authorization as per the roles they perform in an organization.&lt;br /&gt;
&lt;br /&gt;
This chapter details on:&lt;br /&gt;
&lt;br /&gt;
1) Setting up an Organization and its sub-orginizations.&lt;br /&gt;
&lt;br /&gt;
2) Adding /Modifying / Deleting Departments to the Organization&lt;br /&gt;
&lt;br /&gt;
3) Adding /Modifying / Deleting locations to the organization / departments.&lt;br /&gt;
&lt;br /&gt;
4) Associating users to the Organization / SubOrganization / Department / Location.&lt;br /&gt;
&lt;br /&gt;
5) Key point to note while removing (deleting) any location /department is that you need to remove&lt;br /&gt;
&amp;nbsp;&amp;nbsp; the associated users from there. Then only you will be able to delete them.&lt;br /&gt;
&lt;br /&gt;
6) Describes the properties in portal.properties which define the above associations and properties.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; I was looking for a deep dive on these properties where in how should I be able to configure &lt;br /&gt;
&amp;nbsp;&amp;nbsp; my organization and add some properties if possible by modifying the portal-ext.properties.&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; Short examples showing the modification shoule have been provided.&lt;br /&gt;
&lt;br /&gt;
7) The chapter introduces the Shared Global space but dosent talks about it in detail. Hope to see the&lt;br /&gt;
&amp;nbsp;&amp;nbsp; details on how to manage this space in details in other chapters.&lt;br /&gt;
&lt;br /&gt;
8) Creating users to and adding them to groups. I was expecting screen shots for the same.&lt;br /&gt;
&lt;br /&gt;
9) Managing users (Impersonating / update / Activate / Deactivate / Delete)and their profiles.&lt;br /&gt;
&lt;br /&gt;
10) Connecting to LDAP and importing the users from there.&lt;br /&gt;
&lt;br /&gt;
11) Authenticating user via SSO (CAS / NTLM /OpenID /OpenSSO /Siteminder), book describes the configurable portal properties.&lt;br /&gt;
&lt;br /&gt;
12) Managing Roles in an organization and assigning members to those roles.&lt;br /&gt;
&lt;br /&gt;
13) Assigning Portal and portlet level permissions.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Chapter 4:Forums , Categorization and Asset Publishing&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://liferayintegrator.blogspot.com/feeds/7072699561930086820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://liferayintegrator.blogspot.com/2010/06/liferay-portal-6-enterprise-intranets.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8520319635604097525/posts/default/7072699561930086820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8520319635604097525/posts/default/7072699561930086820'/><link rel='alternate' type='text/html' href='http://liferayintegrator.blogspot.com/2010/06/liferay-portal-6-enterprise-intranets.html' title='Liferay Portal 6 Enterprise Intranets -Book Review'/><author><name>Mayank</name><uri>http://www.blogger.com/profile/17208637575951494887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Q8tNKOxG7DFS1x6TwpWVljWBql_8O2zwBDh2pvIGI_Km2Su529seKcnQB212GcN4m9I7KNvy3joiyKjjRC4RMJVY1N1-7rmKJVRnMoxtINYrHs5K640_wp3TKnChxg/s220/09a0430.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8520319635604097525.post-202656317143155104</id><published>2010-05-31T09:53:00.000-07:00</published><updated>2010-06-11T22:56:26.069-07:00</updated><title type='text'>Ongoing Admin Tasks</title><content type='html'>&lt;b&gt;Book&lt;/b&gt;: &lt;a href=&quot;https://www.packtpub.com/liferay-portal-6-enterprise-intranets/book&quot;&gt;&lt;span style=&quot;color: black; font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Liferay Poratl 6 Enterprise Intranets&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Calibri;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Sample Chapter:&lt;a href=&quot;https://www.packtpub.com/sites/default/files/0387-Chapter-11-Ongoing-Admin-Tasks.pdf&quot;&gt;Ongoing Admin Tasks&lt;/a&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;small&gt;&lt;big&gt;&lt;big&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;small&gt;&lt;big&gt;&lt;big&gt;&amp;nbsp;&lt;/big&gt;&lt;/big&gt;&lt;/small&gt;&lt;/span&gt;&lt;/big&gt;&lt;/big&gt;&lt;/small&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;small&gt;&lt;big&gt;&lt;big&gt;In this Sample Chapter you will learn to.&lt;/big&gt;&lt;/big&gt;&lt;/small&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Manage Servers and Portal Instances&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Use Dynamic data Source called database&amp;nbsp; read writing and database Sharding&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Use password policies, Update portal settings, and monitor user activities.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Building clustering environment&amp;nbsp; and run the portal in a cloud computing environment.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;&lt;small&gt;&lt;big&gt;&lt;big&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;small&gt;&lt;big&gt;&lt;big&gt;&amp;nbsp;&lt;/big&gt;&lt;/big&gt;&lt;/small&gt;&lt;/span&gt;&lt;/big&gt;&lt;/big&gt;&lt;/small&gt;&lt;/pre&gt;&lt;pre style=&quot;color: red; font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;I am currently reading this book and will be publishing my comments / learnings on&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;color: red; font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;all the chapters of the book.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://liferayintegrator.blogspot.com/feeds/202656317143155104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://liferayintegrator.blogspot.com/2010/05/ongoing-admin-tasks.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8520319635604097525/posts/default/202656317143155104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8520319635604097525/posts/default/202656317143155104'/><link rel='alternate' type='text/html' href='http://liferayintegrator.blogspot.com/2010/05/ongoing-admin-tasks.html' title='Ongoing Admin Tasks'/><author><name>Mayank</name><uri>http://www.blogger.com/profile/17208637575951494887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Q8tNKOxG7DFS1x6TwpWVljWBql_8O2zwBDh2pvIGI_Km2Su529seKcnQB212GcN4m9I7KNvy3joiyKjjRC4RMJVY1N1-7rmKJVRnMoxtINYrHs5K640_wp3TKnChxg/s220/09a0430.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8520319635604097525.post-218666550809460494</id><published>2010-02-08T01:13:00.000-08:00</published><updated>2010-02-09T00:59:54.236-08:00</updated><title type='text'>Liferay OpenDS and CAS Integration</title><content type='html'>&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #000066;&quot;&gt;Integrating OpenDS and CAS in Liferay &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
I am using Liferay 5.2.3, openDs-2.2.0 and CAS (&lt;/span&gt;&lt;a href=&quot;http://www.jasig.org/cas&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;http://www.jasig.org/cas&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;) &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: #33ff33; font-size: 100%;&quot;&gt;OpenDS LDAP&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;span style=&quot;color: #33ff33;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;1) Open DS (&lt;/span&gt;&lt;a href=&quot;http://www.opends.org/&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;http://www.opends.org/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;) . I am going with minimal configuration for LDAP.&lt;br /&gt;
&lt;br /&gt;
Steps to Follow:&lt;br /&gt;
&lt;br /&gt;
1) Install plain open DS from &lt;/span&gt;&lt;a href=&quot;http://www.opends.org/&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;http://www.opends.org/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;, without default configuration.&lt;br /&gt;
&lt;br /&gt;
While installation I changed the default port form 389 to 10389.&lt;br /&gt;
&lt;br /&gt;
a) provided hostname [PC name]:abc&lt;br /&gt;
&lt;br /&gt;
b) Create Admin as say: cn=admin,ou=system with password changeit.&lt;br /&gt;
&lt;br /&gt;
c) create a Base DN entry as: dc=company,dc=com&lt;br /&gt;
&lt;br /&gt;
d) Create user entry under ou=people. under this basedn entry.&lt;br /&gt;
&lt;br /&gt;
e) Connect OpenDS via JExplorer LDAP Browser ( &lt;/span&gt;&lt;a href=&quot;http://jxplorer.org/&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;http://jxplorer.org/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;) and you can see those entries as.:&lt;br /&gt;
&lt;br /&gt;
For connecting via JExplorer use:&lt;br /&gt;
&lt;br /&gt;
Host: abc , port:10389&lt;br /&gt;
protocal: LDAP V3&lt;br /&gt;
BaseDN: dc=company,dc=com&lt;br /&gt;
Level: user + password&lt;br /&gt;
userDn: cn=admin,ou=system&lt;br /&gt;
password: changeit&lt;br /&gt;
&lt;br /&gt;
You should see something like:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidv92spINTvL0NF3Ynz7FKzdEMzi6n69MNCH8ePlbJ7boTEazASHHYeg2qNqnCYQzzwyUoRj8KPfuNxI7lIMfA45pMaNDH095AOWvCH7_Pg99-CrgXm3VD93h_-noJtvPZ3fI22hdaveSK/s1600-h/1.JPG&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5435798547041521874&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidv92spINTvL0NF3Ynz7FKzdEMzi6n69MNCH8ePlbJ7boTEazASHHYeg2qNqnCYQzzwyUoRj8KPfuNxI7lIMfA45pMaNDH095AOWvCH7_Pg99-CrgXm3VD93h_-noJtvPZ3fI22hdaveSK/s320/1.JPG&quot; style=&quot;cursor: hand; display: block; height: 277px; margin: 0px auto 10px; text-align: center; width: 320px;&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Now we are done with LDAP Setting successfully. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: #33ff33;&quot;&gt;Liferay + LDAP&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
2) Install Liferay Tomcat Bundle downloaded from &lt;/span&gt;&lt;a href=&quot;http://www.liferay.com/&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;http://www.liferay.com/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt; (I am using liferay 5.2.3).&lt;br /&gt;
&lt;br /&gt;
a) Open up the bundle extract it to some directory say: d:\ in windows.&lt;br /&gt;
&lt;br /&gt;
b) Start liferay (TOMCAT_HOME/bin/start) of the above bundle.&lt;br /&gt;
&lt;br /&gt;
c) Go to control panel of Liferay: (Login as bruno admin and under drop down menu &quot;control panel&quot;)&lt;br /&gt;
&lt;br /&gt;
d) In control Panel Go to Portal-&amp;gt;Settings-&amp;gt;Authentication-&amp;gt;LDAP.&lt;br /&gt;
Here provide the details as:&lt;br /&gt;
&lt;br /&gt;
Enabled :Check&lt;br /&gt;
Base provider URL: &lt;/span&gt;&lt;a href=&quot;ldap://abc:10398/&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;ldap://abc:10398/&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;br /&gt;
BaseDN: dc=company,dc=com&lt;br /&gt;
Principal: cn=admin,ou=system&lt;br /&gt;
credentails=chageit[Photo]&lt;br /&gt;
Now test the LDAP connection using &quot;Test LDAP Connection&quot; button. It should give you successful result.&lt;br /&gt;
Under users section provide details as:&lt;br /&gt;
Authentication Search Filter:(&lt;/span&gt;&lt;a href=&quot;mailto:mail=@email_address&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;mail=@email_address&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;@)&lt;br /&gt;
Import Search Filter (objectClass=inetOrgPerson)&lt;br /&gt;
Screen Name: cn&lt;br /&gt;
Password: userPassword&lt;br /&gt;
EmailAddress:mail&lt;br /&gt;
FirstName: givenName&lt;br /&gt;
LastName: sn&lt;br /&gt;
JobTitle: title&lt;br /&gt;
Group: groupMembership&lt;br /&gt;
&lt;br /&gt;
After this Click on &quot;Test LDAP Users&quot; You should see the users we created while LDAP setup.&lt;br /&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5435798958697407330&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh70yWdjqAXe59j_Nc3kdxi0UlcAEBLr4cANyUiY1lS7sL1Y3Fw9pqMhp2G_ZGY3mfvUQHgetkHtb9N42EzSzvvBW0zK_MVJw2JBPLy7cQw0C-NhTeI7-6wSxYHBE6VE8UH8w2AY67fizF2/s320/2.JPG&quot; style=&quot;cursor: hand; display: block; height: 200px; margin: 0px auto 10px; text-align: center; width: 320px;&quot; /&gt;&lt;br /&gt;
Here under import /export section: check import Enabled, export Eanbled.&lt;br /&gt;
userDn: ou=people,dc=company,dc=com&lt;br /&gt;
Leave rest details as default. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Save the details and you are set to go.You can test via logging form user;s in LDAP in Liferay :)....&lt;br /&gt;
Now we will proceed with Integration of CAS over these settings which we have done till now. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #33ff33; font-size: 100%;&quot;&gt;&lt;strong&gt;3) CAS Integration: &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;a) Download CAS : cas-server-3.3.5-release from &lt;/span&gt;&lt;a href=&quot;http://www.jasig.org/cas&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;http://www.jasig.org/cas&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;. Explode the Zip file and you will find cas-server-webapp-3.3.5.war in modules folder.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;b) Prepare a fresh installtion of tomcat say at port : 8081 because liferay will be running on 8080.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;a) For this open the server.xml file in fresh insalled tomcat and chnage port 8080 to 8081. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;b)Un-comment the following section to enable https. &amp;lt;Connector port=&quot;8443&quot; protocol=&quot;HTTP/1.1&quot; SSLEnabled=&quot;true&quot; maxThreads=&quot;150&quot; scheme=&quot;https&quot; secure=&quot;true&quot; clientAuth=&quot;false&quot; sslProtocol=&quot;TLS&quot; /&amp;gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;c)Rename the cas-server-webapp-3.3.5.war as cas-web.war and put it in webapps folder of the fresh tomcat installation. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;d)Start this tomcat server. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;e) After starting the tomcat. Stop the tomcat server, you should see cas-web folder now in webapps directory. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;f) Now go to cas-web/web-inf folder open deployerConfigContext.xml and provide following enteries: &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;g) Under : &amp;lt;property name=&quot;authenticationHandlers&quot;&amp;gt; ....&amp;lt;bean class=&quot;org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler&quot; p:httpClient-ref=&quot;httpClient&quot; /&amp;gt;......add&lt;br /&gt;
&amp;lt;bean class=&quot;org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler&quot;&amp;gt; &amp;lt;property name=&quot;filter&quot; value=&quot;cn=%u&quot; /&amp;gt; &amp;lt;property name=&quot;searchBase&quot; value=&quot;ou=People,dc=company,dc=com&quot; /&amp;gt; &amp;lt;property name=&quot;contextSource&quot; ref=&quot;contextSource&quot; /&amp;gt; &amp;lt;/bean&amp;gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;h). Since we are creating a reference to contextSource above, so we need to add a bean with that reference. Add a new bean entry as: &amp;lt;bean id=&quot;contextSource&quot; class=&quot;org.springframework.ldap.core.support.LdapContextSource&quot;&amp;gt; &amp;lt;property name=&quot;urls&quot;&amp;gt; &amp;lt;list&amp;gt; &amp;lt;value&amp;gt;ldap://abc:10389/&amp;lt;/value&amp;gt; &amp;lt;/list&amp;gt; &amp;lt;/property&amp;gt; &amp;lt;property name=&quot;userDn&quot; value=&quot;cn=admin,ou=system&quot;/&amp;gt; &amp;lt;property name=&quot;password&quot; value=&quot;changeit&quot;/&amp;gt; &amp;lt;property name=&quot;baseEnvironmentProperties&quot;&amp;gt; &amp;lt;map&amp;gt; &amp;lt;entry&amp;gt; &amp;lt;key&amp;gt; &amp;lt;value&amp;gt;java.naming.security.authentication&amp;lt;/value&amp;gt; &amp;lt;/key&amp;gt; &amp;lt;value&amp;gt;simple&amp;lt;/value&amp;gt; &amp;lt;/entry&amp;gt; &amp;lt;/map&amp;gt; &amp;lt;/property&amp;gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;
3) save ths file. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;4) Now we will configure Liferay to enable CAS authentication. For this goto Liferay -&amp;gt; control panel &amp;gt;Settings-&amp;gt;Authentication-&amp;gt;CAS&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;5) Do the following changes:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Enabled: checked&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Import from LDAP: checked&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Login URL: &lt;/span&gt;&lt;a href=&quot;https://abc:8443/cas-web/login&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;https://abc:8443/cas-web/login&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt; (Assuming CAS is also on abc)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Logout URL: &lt;/span&gt;&lt;a href=&quot;https://abc:8443/cas-web/logout&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;https://abc:8443/cas-web/logout&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;server name: abc:8080 (Liferay is on 8080)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Service URL: &lt;/span&gt;&lt;a href=&quot;http://abc:8080/c/portal/login&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;http://abc:8080/c/portal/login&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;validate URL: &lt;/span&gt;&lt;a href=&quot;https://abc:8443/cas-web/proxyValidate&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;https://abc:8443/cas-web/proxyValidate&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;save the settings.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Now shutdown Liferay and Tomcat (CAS one) both.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Now we have completed our basic conficuration, the only thing missing is the certificate by which authentication will be done via CAS. So let&#39;s generate certificated and make it trusted for things to work like butter :)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Generate the SSL cert with Java keytool ;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;In any directory enter the command :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-size: 100%;&quot;&gt;keytool -genkey -alias tomcat -keypass password -keyalg RSA&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Answers the Q&#39;s (&lt;span style=&quot;color: red;&quot;&gt;note that your firstname and lastname MUST be hostname of your server and cannot be a IP address&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #8e7cc3; font-size: 100%;&quot;&gt;Enter keystore password: changeit &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #8e7cc3; font-size: 100%;&quot;&gt;What is your first and last name? [Unknown]: abc&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #8e7cc3; font-size: 100%;&quot;&gt;What is the name of your organizational unit? [Unknown]: abc&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #8e7cc3; font-size: 100%;&quot;&gt;What is the name of your City or Locality? [Unknown]: &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #8e7cc3; font-size: 100%;&quot;&gt;What is the name of your State or Province? [Unknown]: &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #8e7cc3; font-size: 100%;&quot;&gt;What is the two-letter country code for this unit? [Unknown]: Is CN=abc, OU=abc, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct? [no]: yes&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Then Enter command:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-size: 100%;&quot;&gt;keytool -export -alias tomcat -keypass changeit -file server.cert&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;This command exports the cert you generated from your personal keystore (In windows .keystore file) . To save the certificate on file named server.cert&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Finally import the cert into Java&#39;s keystore with this command. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-size: 100%;&quot;&gt;keytool -import -alias tomcat -file server.cert keypass changeit -keystore %JAVA_HOME%/jre/lib/security/cacerts&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Note: This import of certificate should be done for all the JRE&#39;s [The tomcat JRE for CAS and the JRE for Liferay], probably the liferay bundle would be having its own JRE, so import the certificate there as well as in the Tomcat installation JRE or JDK , should be Java_home :).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;After this....Yeah we are all set.......&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Start OpenDS, Start CAS Tomcat, Start Liferay. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;Form home click &quot;sign in&quot; in liferay, you will be redirected to CAS login screen. Enter the credentials which we added in LDAP [Note: CAS authenticates with userId not email which liferay does], so put Id we used in LDAP into CAS login screen with password, put password and submit. You should now be redirected to Liferay and logged in with Signed in User.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #33ff33; font-size: 100%;&quot;&gt;&lt;strong&gt;Some Problems that I faced during above activity:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;1) Exporting to LDAP fails if the user doesn&#39;t have a Job Title: Well provide jobTitle...Its required by Liferay. so go to LDAP browser and for each user provide value for title.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;2) I have to use Passwords as plain text as passwords are exported to LDAP via Liferay is in form of Plain Text.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;3) CAS uses username for authentication and for liferay its the ScreenName. so authentication is for screenname even if we supply email as authentication in Liferay.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;4) Unable to validate ProxyTicketValidator [[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList=[null] : This error comes up whenever the certificates are not matching on both the JVM&#39;s where CAS and Liferay is running. So, just ensure they are correct and at proper place, This problem will be resolved.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://liferayintegrator.blogspot.com/feeds/218666550809460494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://liferayintegrator.blogspot.com/2010/02/liferay-opends-and-cas-integration.html#comment-form' title='25 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8520319635604097525/posts/default/218666550809460494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8520319635604097525/posts/default/218666550809460494'/><link rel='alternate' type='text/html' href='http://liferayintegrator.blogspot.com/2010/02/liferay-opends-and-cas-integration.html' title='Liferay OpenDS and CAS Integration'/><author><name>Mayank</name><uri>http://www.blogger.com/profile/17208637575951494887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Q8tNKOxG7DFS1x6TwpWVljWBql_8O2zwBDh2pvIGI_Km2Su529seKcnQB212GcN4m9I7KNvy3joiyKjjRC4RMJVY1N1-7rmKJVRnMoxtINYrHs5K640_wp3TKnChxg/s220/09a0430.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidv92spINTvL0NF3Ynz7FKzdEMzi6n69MNCH8ePlbJ7boTEazASHHYeg2qNqnCYQzzwyUoRj8KPfuNxI7lIMfA45pMaNDH095AOWvCH7_Pg99-CrgXm3VD93h_-noJtvPZ3fI22hdaveSK/s72-c/1.JPG" height="72" width="72"/><thr:total>25</thr:total></entry></feed>