Fórum
i've got an UserScreenNameException while trying to authenticate anto my A
Thiago Esteves, modificado 14 Anos atrás.
i've got an UserScreenNameException while trying to authenticate anto my A
Junior Member Postagens: 31 Data de Entrada: 24/06/09 Postagens Recentes
Hello everybody,
While trying to authenticate an user from my local AD I got an UserScreenNameException.
18:27:50,985 ERROR [PortalLDAPUtil:911] Problem adding user with screen name ad_access and email address ad_access@gravames.local
com.liferay.portal.UserScreenNameException
at com.liferay.portal.service.impl.UserLocalServiceImpl.validateScreenName(UserLocalServiceImpl.java:3372)
at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:3265)
at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLocalServiceImpl.java:275)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
Doesn't liferay accept screen names with the _ character?
Thanks in advance,
Thiago
While trying to authenticate an user from my local AD I got an UserScreenNameException.
18:27:50,985 ERROR [PortalLDAPUtil:911] Problem adding user with screen name ad_access and email address ad_access@gravames.local
com.liferay.portal.UserScreenNameException
at com.liferay.portal.service.impl.UserLocalServiceImpl.validateScreenName(UserLocalServiceImpl.java:3372)
at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:3265)
at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLocalServiceImpl.java:275)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
Doesn't liferay accept screen names with the _ character?
Thanks in advance,
Thiago
Zsolt Balogh, modificado 14 Anos atrás.
RE: i've got an UserScreenNameException while trying to authenticate a
Expert Postagens: 463 Data de Entrada: 23/03/09 Postagens Recentes
Hi,
You should use the LiberalScreenNameValidator.
Put the next line in the portal-ext.properties:
(Default ScreenNameValidator does not accept screen names with underlines)
Restart your app server and it will work.
You should use the LiberalScreenNameValidator.
Put the next line in the portal-ext.properties:
users.screen.name.validator=com.liferay.portal.security.auth.LiberalScreenNameValidator
(Default ScreenNameValidator does not accept screen names with underlines)
Restart your app server and it will work.
jih jiha jih, modificado 14 Anos atrás.
RE: i've got an UserScreenNameException while trying to authenticate a
New Member Postagens: 2 Data de Entrada: 09/12/08 Postagens Recentes
While trying to import a screen name with digits only am getting the similar exception. say for eg if my screen name is 200912344. i am getting the above mentioned exception.
My portal-ext.properties contain this below line
users.screen.name.validator = com.liferay.portal.security.auth.LiberalScreenNameValidator
Please help
My portal-ext.properties contain this below line
users.screen.name.validator = com.liferay.portal.security.auth.LiberalScreenNameValidator
Please help
Zsolt Balogh, modificado 14 Anos atrás.
RE: i've got an UserScreenNameException while trying to authenticate a
Expert Postagens: 463 Data de Entrada: 23/03/09 Postagens Recentes
The screen name shouldn't be a number except when it's the user's id. This is hard-coded and can't be configured.
if (Validator.isNumber(screenName) &&
!screenName.equals(String.valueOf(userId))) {
throw new UserScreenNameException();
}
Zsolt Balogh, modificado 14 Anos atrás.
RE: i've got an UserScreenNameException while trying to authenticate a
Expert Postagens: 463 Data de Entrada: 23/03/09 Postagens Recentes
jihad Aravassery, modificado 11 Anos atrás.
RE: i've got an UserScreenNameException while trying to authenticate a
New Member Postagens: 2 Data de Entrada: 09/12/08 Postagens Recentes
Thanks for implementing this in new versions of liferay