Foren

changing existing cas path

wes au, geändert vor 11 Jahren.

changing existing cas path

New Member Beiträge: 11 Beitrittsdatum: 10.07.12 Neueste Beiträge
hi guys

i had migrate liferay to another server
i did setup cas in the existing server and i would like to change the cas path

i did the following method but it couldnt help

1) set this is portal -ext . properties
auto.login.hooks=com.liferay.portal.security.auth.CASAutoLogin,com.liferay.portal.security.auth.FacebookAutoLogin,com.liferay.portal.security.auth.NtlmAutoLogin,com.liferay.portal.security.auth.OpenIdAutoLogin,com.liferay.portal.security.auth.OpenSSO

then go to http://xx.xx.xx.xx:8080/?parameterAutoLoginLogin=test&parameterAutoLoginPassword=test

but it gave me this error Current URL /?parameterAutoLoginLogin=test&parameterAutoLoginPassword=admin generates exception: null

2) set cas propertiers in portal-ext.properties
cas.auth.enabled=true
cas.login.url=http://cas/cas/login
cas.logout.url=http://cas/cas/logout
cas.server.name=http://cas.cas
cas.server.url=http://cas/cas
auto.login.hooks=com.liferay.portal.security.auth.CASAutoLogin

3) i see some post that can change the portal-perferences from database, but there are quite a lot of rows, and i dont know which to modify
pls help

thanks
thumbnail
Rishi Dev Gupta, geändert vor 11 Jahren.

RE: changing existing cas path

Expert Beiträge: 255 Beitrittsdatum: 23.11.08 Neueste Beiträge
For point 3, try the following:
Get companyId from "company" table and look for the row in "portalpreferences" table where onwerId is same as companyId.
Now you can update this row as per the changed values and start the server.

or

Go to "portalprefernces" table run the below command
SELECT * FROM portalpreferences WHERE preferences LIKE ("%CAS%")

Once in output you know the target row, you can simply update it. You can also try finding previous CAS url instead of 'CAS' is where clause.

Hope this help...