Tuesday, November 26, 2013

Liferay

Liferay Hook development
http://learntolead-liferay.blogspot.co.uk/2012/07/liferay-hook-4-custom-action-prelogin.html

IBM TAM SSO with Liferay
http://www.khau-tech.com/2012/11/19/ibm-tivoli-access-manager-sso-with-liferay/


Which Action class to use to extend the action behaviour
*************************************************
https://www.liferay.com/community/wiki/-/wiki/Main/Struts+Action+Hook+Tips?_36_pageResourcePrimKey=21386817

SPRING MVC Liferay Portlet
--------------------------------------------
http://www.opensource-techblog.com/2012/09/spring-mvc-portlet-in-liferay.html

Thursday, November 14, 2013

Some handy Unix/Linux commands

To find a process with specific string and then kill a series of such processes.
-------------------------------------
kill -9 `ps -ef | grep <string> | grep -v grep | awk '{print $2}'`


Make a file void / empty
------------------------------------
cat /dev/null > abc.txt


Super duper command to remove cache/page cache from Linux
---------------------------------------------------------------------------------------
free && sync && echo 3 > /proc/sys/vm/drop_caches && free

More on this refer...
http://unix.stackexchange.com/questions/87908/how-do-you-empty-the-buffers-and-cache-on-a-linux-system


 

Tuesday, November 05, 2013

Liferay 6.2 - Installations - LDAP integration

Liferay 6.2 - LDAP Integration
*****************************

Liferay 6.2 has no properties files ! Which were there until previous version. I guess now these are part of database tables.

So, while I was trying to integrate my server with LDAP server (TDS) I could configure the LDAP using the Control panel of liferay. And server was able to connect to LDAP.

But due to some issue I was not able to login using any of my ldap users or the default portal user. I was not able to login to the portal.

In earlier version there was a property file named, portal-ext.properties which used to hold those ldap specific values. But this doesnt exist in Liferay 6.2.

While looking at database ( portal database ), I found a table named portalpreferences, which has those ldap properties.

SELECT preferences FROM lportal.portalpreferences where portalPreferencesId = 10160


So, I changed the values of the parameters,
ldap.auth.enabled and ldap.auth.enabled ( which are two check boxes on the LDAP configuration page needs to be checked to enable LDAP login ) to false.

And that's it.

It worked for me, hope it helps you. This is still work under progress and I am looking to complete this LDAP connectivity with Liferay 6.2. So will keep updating this post.

https://www.liferay.com/documentation/liferay-portal/6.2/user-guide/-/ai/integrating-existing-users-into-liferay-liferay-portal-6-2-user-guide-17-en