掲示板

Customizing Liferay

16年前 に srinivas jill によって更新されました。

Customizing Liferay

New Member 投稿: 18 参加年月日: 07/12/12 最新の投稿
Hi ,

I have developed a small portal for our intranet users . now there is a requirement for me that only people who belongs to my company only should able to register into the system (we want to expose the box to internet) .

This can be done with 2 steps taking care .

1) Only my company id are to be accepted for registration

2) The registration password should be sent to the email ID (Not to be displayed in the screen )

I Could able to achieve the second part , by configuring in the admin portlet .For the 1st part , is there any inbuilt functionality in liferay where we can restrict by domain name . If so please let me now how can i do that.

Regards ,
Jill
thumbnail
16年前 に Roman Hoyenko によって更新されました。

RE: Customizing Liferay

Liferay Master 投稿: 878 参加年月日: 07/10/08 最新の投稿
Check this section of portal.properties (you would need to change portal-ext.properties after that):

##
## Company
##

#
# This sets the default web id. Omniadmin users must belong to the company
# with this web id.
#
company.default.web.id=liferay.com

#
# The portal can authenticate users based on their email address, screen
# name, or user id.
#
company.security.auth.type=emailAddress
#company.security.auth.type=screenName
#company.security.auth.type=userId

#
# Set this to true to ensure users login with https.
#
company.security.auth.requires.https=false

#
# Set the following to true to allow users to select the "remember me"
# feature to automatically login to the portal.
#
company.security.auto.login=true

#
# Set the following to the maximum age (in number of seconds) of the browser
# cookie that enables the "remember me" feature. A value of 31536000
# signifies a lifespan of one year. A value of -1 signifies a lifespan of a
# browser session.
#
# Rather than setting this to 0, set the property
# "company.security.auto.login" to false to disable the "remember me"
# feature.
#
company.security.auto.login.max.age=31536000

#
# Set the following to true to allow users to ask the portal to send them
# their password.
#
company.security.send.password=true

#
# Set the following to true to allow strangers to create accounts and
# register themselves on the portal.
#
company.security.strangers=true

#
# Set the following to true if strangers can create accounts with email
# addresses that match the company mail suffix. This property is not used
# unless "company.security.strangers" is also set to true.
#
company.security.strangers.with.mx=true

#
# Set the following to true if strangers who create accounts need to be
# verified via email.
#
company.security.strangers.verify=false

#
# Set the following to true to allow community administrators to use their
# own logo instead of the enterprise logo.
#
company.security.community.logo=true
16年前 に srinivas jill によって更新されました。

RE: Customizing Liferay

New Member 投稿: 18 参加年月日: 07/12/12 最新の投稿
Thanx Roman . I will check it and will get back to u for further queries.

I have one more problem . In my portal there are 5 communities and this forum is targeted for 500 users.
My requiremnet is any person should be only in one community .
This can be done by

1) Not Opening the forms
2) Aadmin has to manually assign each user to one of the community .

The 1st part can be done easily , but for the second part, it is a tedious activity for the admin. Is there a way that i can approach this problem.

Regards,
JILL


Roman Hoyenko:
Check this section of portal.properties (you would need to change portal-ext.properties after that):

##
## Company
##

#
# This sets the default web id. Omniadmin users must belong to the company
# with this web id.
#
company.default.web.id=liferay.com

#
# The portal can authenticate users based on their email address, screen
# name, or user id.
#
company.security.auth.type=emailAddress
#company.security.auth.type=screenName
#company.security.auth.type=userId

#
# Set this to true to ensure users login with https.
#
company.security.auth.requires.https=false

#
# Set the following to true to allow users to select the "remember me"
# feature to automatically login to the portal.
#
company.security.auto.login=true

#
# Set the following to the maximum age (in number of seconds) of the browser
# cookie that enables the "remember me" feature. A value of 31536000
# signifies a lifespan of one year. A value of -1 signifies a lifespan of a
# browser session.
#
# Rather than setting this to 0, set the property
# "company.security.auto.login" to false to disable the "remember me"
# feature.
#
company.security.auto.login.max.age=31536000

#
# Set the following to true to allow users to ask the portal to send them
# their password.
#
company.security.send.password=true

#
# Set the following to true to allow strangers to create accounts and
# register themselves on the portal.
#
company.security.strangers=true

#
# Set the following to true if strangers can create accounts with email
# addresses that match the company mail suffix. This property is not used
# unless "company.security.strangers" is also set to true.
#
company.security.strangers.with.mx=true

#
# Set the following to true if strangers who create accounts need to be
# verified via email.
#
company.security.strangers.verify=false

#
# Set the following to true to allow community administrators to use their
# own logo instead of the enterprise logo.
#
company.security.community.logo=true
thumbnail
16年前 に Roman Hoyenko によって更新されました。

RE: Customizing Liferay

Liferay Master 投稿: 878 参加年月日: 07/10/08 最新の投稿
You should look at theese properties:

#
# Set the following to true if strangers can create accounts with email
# addresses that match the company mail suffix. This property is not used
# unless "company.security.strangers" is also set to true.
#
company.security.strangers.with.mx=true

#
# Set the following to true if strangers who create accounts need to be
# verified via email.
#
company.security.strangers.verify=false

As for your second question:

If I understand it right you want all users to be able to access forums and each user will also have a community assigned.

You can add all users to one "default" community and add forum to one of the pages on this community.

As for the others - you need to have some rule by which you assign users to different communities. You can create a group and add users to groups and then assign a group to a community.
16年前 に srinivas jill によって更新されました。

RE: Customizing Liferay

New Member 投稿: 18 参加年月日: 07/12/12 最新の投稿
Hi Roman ,

I have read the portlet.properties section what u have said . I will keep my understanding . Please correct me if i am wrong .

company.default.web.id=liferay.com
company.security.send.password=true

It seems that only these 2 properties are relevant to the discussion .
By default , company.security.send.password is set to true and the domain name is liferay. It means that we cannot create users other than liferay email address . But it is not happening like that . I can create users with any email address .

How can i restrict the only people belonging to @*****.com can register.

Regards ,

JILL





Roman Hoyenko:
Check this section of portal.properties (you would need to change portal-ext.properties after that):

##
## Company
##

#
# This sets the default web id. Omniadmin users must belong to the company
# with this web id.
#
company.default.web.id=liferay.com

#
# The portal can authenticate users based on their email address, screen
# name, or user id.
#
company.security.auth.type=emailAddress
#company.security.auth.type=screenName
#company.security.auth.type=userId

#
# Set this to true to ensure users login with https.
#
company.security.auth.requires.https=false

#
# Set the following to true to allow users to select the "remember me"
# feature to automatically login to the portal.
#
company.security.auto.login=true

#
# Set the following to the maximum age (in number of seconds) of the browser
# cookie that enables the "remember me" feature. A value of 31536000
# signifies a lifespan of one year. A value of -1 signifies a lifespan of a
# browser session.
#
# Rather than setting this to 0, set the property
# "company.security.auto.login" to false to disable the "remember me"
# feature.
#
company.security.auto.login.max.age=31536000

#
# Set the following to true to allow users to ask the portal to send them
# their password.
#
company.security.send.password=true

#
# Set the following to true to allow strangers to create accounts and
# register themselves on the portal.
#
company.security.strangers=true

#
# Set the following to true if strangers can create accounts with email
# addresses that match the company mail suffix. This property is not used
# unless "company.security.strangers" is also set to true.
#
company.security.strangers.with.mx=true

#
# Set the following to true if strangers who create accounts need to be
# verified via email.
#
company.security.strangers.verify=false

#
# Set the following to true to allow community administrators to use their
# own logo instead of the enterprise logo.
#
company.security.community.logo=true
thumbnail
16年前 に Josh Asbury によって更新されました。

RE: Customizing Liferay

Expert 投稿: 498 参加年月日: 06/09/08 最新の投稿
JILL,

Say your company domain is abc.com. You will want to set the following to allow only users with an @abc.com email address to create accounts and receive email notifications:

company.default.web.id=abc.com
company.security.auth.type=emailAddress
company.security.strangers=true
company.security.strangers.with.mx=true
company.security.strangers.verify=true

Restart Liferay. and that should do the trick.

Josh
16年前 に srinivas jill によって更新されました。

RE: Customizing Liferay

New Member 投稿: 18 参加年月日: 07/12/12 最新の投稿
Hi Josh ,

Thank You for the reply . I did the same way what you have said , but i could able to register using my gmail id also . Do i have to change any thing else to make it work for my company ID only .

Regards,
JILL



Josh Asbury:
JILL,

Say your company domain is abc.com. You will want to set the following to allow only users with an @abc.com email address to create accounts and receive email notifications:

company.default.web.id=abc.com
company.security.auth.type=emailAddress
company.security.strangers=true
company.security.strangers.with.mx=true
company.security.strangers.verify=true

Restart Liferay. and that should do the trick.

Josh