Forums

Home » Liferay Portal » English » x. Miscellaneous

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
quentin giraudon
Redirecting user if not exist
November 5, 2012 8:42 AM
Answer

quentin giraudon

Rank: New Member

Posts: 11

Join Date: September 19, 2012

Recent Posts

Hello,

In my application i use CAS Server to authenticate users.
I'm using liferay portal 6.0.6

My problem is that users existing in the LDAP directory but not in the portal database can access to the portal (they are redirected to the portal default login page)
and i get a
ERROR [CASAutoLogin:131] com.liferay.portal.NoSuchUserException: No User exists with the key {companyId=10132, screenName=utilisateur_01}

in the tomcat log file.

What i wanted is to redirect these users to a custom error page instead of the portal login page

Is there a way to do this properly ?

thanks in advance
Quentin
Hitoshi Ozawa
RE: Redirecting user if not exist
November 7, 2012 2:48 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

I think I just edited the web.xml to redirect on authentication error.
quentin giraudon
RE: Redirecting user if not exist
November 19, 2012 10:21 AM
Answer

quentin giraudon

Rank: New Member

Posts: 11

Join Date: September 19, 2012

Recent Posts

yeah ?

can you be more specific please ?