Fórum

Specific Users for multiple website on single instance

Yogesh Garg, modificado 12 Anos atrás.

Specific Users for multiple website on single instance

Junior Member Postagens: 51 Data de Entrada: 10/11/08 Postagens Recentes
Hi ,
I have Liferay 5.2.3
I have created two website for that liferay intance.

www.alpha.com
www.beta.com

I want to add 4 users to www.aplha.com and 4 users to www.beta.com. Also, I want to make sure that the users that I want to add to www.alpha.com can not access www.beta.com and vice versa.
Please someone let me know how can add these users.

I cannot add users when I login with www.alpha.com:8080.
Also, If I add a user to the general instance localhost:8080 with something like testuser1@alpha.com I can not login to it to the website www.alpha.com:8080.

Kindly explain how can I achieve this.

Thanks,
Yogesh
thumbnail
amit doshi, modificado 12 Anos atrás.

RE: Specific Users for multiple website on single instance

Liferay Master Postagens: 550 Data de Entrada: 29/12/10 Postagens Recentes
Hi Yogesh,

For Two Different websites you might had made two different Communities.

So add four users in alpha and 4 users in beta community.

Make one loginPreAction hook and there you can check the community of that particular user.
If the particular user belong to that particular community then allow them to logged in or else directly make them logout.

And also by default don't allow guest user to see that community.

Let me know if any confusion.

Thanks & Regards,
Amit Doshi
thumbnail
Jignesh Vachhani, modificado 12 Anos atrás.

RE: Specific Users for multiple website on single instance

Liferay Master Postagens: 803 Data de Entrada: 10/03/08 Postagens Recentes
Simple solution is, make community protected.
And assign specific users to those community. It means assign community member role to those members only.

I am not that much clear with your second point regarding login concern.
Please elaborate in details.

HTH
Jigs
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: Specific Users for multiple website on single instance

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
I want to add 4 users to www.aplha.com and 4 users to www.beta.com.


You try using communities if you don't mind having a common top page (guest page) and community extensions to your domain names.

If you want to have 2 different domain URLs without any extensions, you'll have to use 2 instances as you've already done.

I cannot add users when I login with www.alpha.com:8080.


Why do you want to login with port 80 AND port 8080? Different ports usually means different sites. If you want enable to login either with port 80 and port 8080,
you'll have to setup your HTTPD server to route both requests to the Liferay portal instance you've defined.