掲示板

What is a valid screen name? What are the rules?

thumbnail
13年前 に jeff perreault によって更新されました。

What is a valid screen name? What are the rules?

New Member 投稿: 4 参加年月日: 10/07/07 最新の投稿
Hi, I'm having lots of troubles integrating our LDAP with LifeRay.

Are there rules about what a screen name can be?

I cannot seem to create ( manually or using LDAP ) a new user with a screen name consisting of all numbers. This is a problem, since our usernames in LDAP are 9 digit numbers.

Here is the error that I see:

17:26:10,288 ERROR [PortalLDAPImporter:580] Problem adding user with screen name 100383833 and email address test@########.com
com.liferay.portal.UserScreenNameException
at com.liferay.portal.service.impl.UserLocalServiceImpl.validateScreenName(UserLocalServiceImpl.java:3351)
at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:3222)
at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLocalServiceImpl.java:367)
at sun.reflect.GeneratedMethodAccessor963.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)



What can I do in order to use our LDAP to authenticate LifeRay?
thumbnail
13年前 に Samuel Kong によって更新されました。

RE: What is a valid screen name? What are the rules?

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
Which version of Liferay Portal are you using. 5.1 CE and 5.2 CE does not allow all numeric screen names because it can potentially cause conflicts in the URL. in 6.0 CE, however, we were able to figure out a solution around this limitation so you should be able to use all numeric screen names in 6.0 CE.
thumbnail
13年前 に jeff perreault によって更新されました。

RE: What is a valid screen name? What are the rules?

New Member 投稿: 4 参加年月日: 10/07/07 最新の投稿
Hi we are evaluating LifeRay Portal v 5.2 EE sp4

It's a show stopper if we can't use LDAP to authenticate. We have dozens of users and our policy is to only have a single login for all of our systems.

Can the ScreenName have spaces? Does it appear in a URL?

What do other LDAP users use as a screen name?
thumbnail
13年前 に Samuel Kong によって更新されました。

RE: What is a valid screen name? What are the rules?

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
jeff perro:
Hi we are evaluating LifeRay Portal v 5.2 EE sp4


If you're using 5.2 EE SP4 (or 6.0), you can set

users.screen.name.allow.numeric=true


to use numeric screen names. Please note that not all numeric values are allowed as screen names. Numbers used by communities and organizations cannot be used as screen names. More technically, numbers used as a groupId in the Group_ table cannot be used as a screen name.

Can the ScreenName have spaces? Does it appear in a URL?


No. Yes.
thumbnail
13年前 に Sandeep Nair によって更新されました。

RE: What is a valid screen name? What are the rules?

Liferay Legend 投稿: 1744 参加年月日: 08/11/06 最新の投稿
Following are some of the validations that i know

Cannot be "postfix" or "cyrus"
cannot be emailaddress
cannot have underscore or forward slash
cannot be null
if screenname is number it cannot be same as userid
cannot be annonymous names of application servers like (anonymous-guest,guest,ANONYMOUS,<anonymous>)
If you have reserved some screennames in portal-ext.properties specified in this property admin.reserved.screen.names then you cant use them.

These are some of the validations that i know of.

Regards,
Sandeep
thumbnail
13年前 に jeff perreault によって更新されました。

RE: What is a valid screen name? What are the rules?

New Member 投稿: 4 参加年月日: 10/07/07 最新の投稿
Can screen name have a space?

Does the screen name have to be unique?

I'm looking through our LDAP record, and the only unique things we have are:
email
userid - a 9 digit number
uid ( which I do not want to expose )
display name ( which has spaces and is not necessarily unique )
thumbnail
13年前 に Sandeep Nair によって更新されました。

RE: What is a valid screen name? What are the rules?

Liferay Legend 投稿: 1744 参加年月日: 08/11/06 最新の投稿
As Samuel said screenname cannot have space. Yes screenname has to be unique coz afik screenname is used in making friendly url of user's pvt and public page. Display name liferay takes it by default combination of users first and last name which is used in greeting like Welcome Firstname LastName.

If nothing from ldap maps to liferays screenname you can set following property in portal-ext.properties to true users.screen.name.always.autogenerate=true

This will autogenerate screenname.

Regards,
Sandeep
thumbnail
13年前 に Ben Davis によって更新されました。

RE: What is a valid screen name? What are the rules?

Junior Member 投稿: 77 参加年月日: 07/05/03 最新の投稿
Sandeep,
Do you know if this property:

users.screen.name.always.autogenerate=true

still works in version 6.0?

I tried it and I cannot get it to autogenerate screen names.
Also, are you supposed to just leave the screen name mapping field empty?
The LDAP importer complains that screen names can't be null.
thumbnail
13年前 に Sandeep Nair によって更新されました。

RE: What is a valid screen name? What are the rules?

Liferay Legend 投稿: 1744 参加年月日: 08/11/06 最新の投稿
It says so in portal.properties. I havent tried it.

#
# Set this to true to always autogenerate user screen names even if the user
# gives a specific user screen name. If this is set to true, the LDAP
# importer will fetch users by their email address even if the property
# "company.security.auth.type" is set to screenName.
#
users.screen.name.always.autogenerate=true


Try with fresh instance of tomcat or check for the newly created users after the property is set to true.

Regards,
Sandeep
thumbnail
13年前 に Abhishek Saxena によって更新されました。

RE: What is a valid screen name? What are the rules?

Regular Member 投稿: 130 参加年月日: 09/06/17 最新の投稿
validation fro screename ==> ScreenNameValidator.java
com.liferay.portal.security.auth

For making changes in user creation as per your post you want to use email-id which is the only unique field try changing UserLocalServiceImpl

related forum post for making changes in user creation
10年前 に Cronje Fourie によって更新されました。

RE: What is a valid screen name? What are the rules?

New Member 投稿: 1 参加年月日: 13/08/12 最新の投稿
Not sure if you ever got around your bug, but for future generations...Screen names can't start with a numeric either. So 1004bob is not a valid option, however bob1004 is perfectly ok.