Sunday, October 16, 2011

Customizing liferay Using Trick-II

1) How to change the domain name from liferay.com to example.com

Company Properties

company.default.web.id=liferay.com

change it to example.com

2) How to change my login ? If i want to use screen name instead of emailAddress

company.security.auth.type=emailAddress
#company.security.auth.type=screenName
#company.security.auth.type=userId

In the above case , screenName and userId are commented out using #

3) Password Related
Set this to true to allow users to ask the portal to send them their password.
company.security.send.password=true

Set this to true to allow users to ask the portal to send them a password reset link.
company.security.send.password.reset.link=true

Set the following encryption algorithm to encrypt passwords. The default
algorithm is SHA (SHA-1). If set to NONE, passwords are stored in the
database as plain text. The SHA-512 algorithm is currently unsupported.

#passwords.encryption.algorithm=CRYPT
#passwords.encryption.algorithm=MD2
#passwords.encryption.algorithm=MD5
#passwords.encryption.algorithm=NONE
passwords.encryption.algorithm=SHA
#passwords.encryption.algorithm=SHA-256
#passwords.encryption.algorithm=SHA-384
#passwords.encryption.algorithm=SSHA

Uncomment whichever password encryption algo you would like http://www.blogger.com/img/blank.gifto use

Set your own regex pattern for your Password
passwords.regexptoolkit.pattern=(?=.{4})(?:[a-zA-Z0-9]*)


Set this to true to allow the user to choose a password during account creation.
login.create.account.allow.custom.password=false

More Password Properties

Cheers..!!
Gaurav Rastogi.

No comments:

Post a Comment