legacy-knowledge-base
Publicado Jul. 25, 2002

Users Fail to Import When First Name is Missing in LDAP

written-by

Michael Wine

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text
 This article discusses an apparent issue when Liferay Portal will throw a ContactFirstNameException error in the console. This error message appears when the first name is left out if importing a user from an LDAP server.

Resolution

This behavior is intended for Liferay Portal. Liferay Portal requires the attribute of First Name for a new user to be created. This can be observed when creating a new user in the Control Panel. If the first name is left out, the user will not be created and the user will be reminded that the first Name is required. When importing a user from LDAP, this behavior is consistent in that if the user does not not have a first name in the LDAP configuration, Liferay Portal will not import or add the user and the exception will be thrown.

Currently in the portal.properties file, there is the option to ignore the last name attribute.

#
# Set this to true if you want the last name to be required when creating
# users.
#
users.last.name.required=false

Additional Information

There is a a request for our engineers to look into adding a property that allows for ignoring a missing first name attribute on LPS-45941.

did-this-article-resolve-your-issue

legacy-knowledge-base