Liferay authentication and authorization (Siteminder and Custom Tomcat Authorization) -


i new liferay portal. afraid, questions being raised might simple, not aware. please clarify.

we trying build portal using liferay on tomcat. portal should authenticated netegrity siteminder , have our internal authorization mechanism built on tomcat security . have questions on 2 areas have listed below

  1. question on enabling siteminder in liferay when siteminder enabled within liferay, necessary still configure user in liferay portal have siteminder authenticated user portal page.

  2. authorizations - objective avoid configuring user , roles , associations in liferay. because portal want built should rely on tomcat security customized framework in place.

i deployed portlet has set of links available , these links should available based on user permissions. configured users , set of roles in tomcat-users.xml , defined role-mapping in liferay-portlet.xml,portlet.xml,web.xml , deployed portlet , changed realm configuration in liferay.xml below

appname="portalrealm" userclassnames="com.liferay.portal.security.jaas.portalprincipal"  roleclassnames="com.liferay.portal.security.jaas.portalrole"  debug="99" usecontextclassloader="false"/> 

i logged liferay portal user (configured both in liferay , tomcat-users.xml , added portlet on page , see links not displayed request.isuserinrole("role x") returned false. when tried configuring same role , associated user, saw link working. expected behaviour not seen.

please me on this. appreciate quick response.

thanks kalaiarasan

1) users imported external auth. tool liferay. experience based on ldap (opendj) auth. integration liferay. if users organized in groups it's possible import groups , associate imported users groups. last step give required permissions groups. end usual liferay users appropriate roles, optionally belonging appropriate groups -- coming external tomcat configuration.

2) i'd recommend importing users , roles have in tomcat liferay (and yes, can done automatically during authorization writing code imports authorized user , roles). give flexibility fine-tune permissions using liferay built-in mechanisms , interfere less override. have advancedsecuritychecker class can override custom permissions handling it's less recommended.

finally keep in mind upgrades future liferay versions. more of liferay functionality override , customize harder upgrade.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -