Fórum

Need to Import from LDAP without password and email

thumbnail
Joseph Wolfe, modificado 13 Anos atrás.

Need to Import from LDAP without password and email

Regular Member Postagens: 103 Data de Entrada: 22/02/11 Postagens Recentes
Hello,

I am in the process of evaluating Liferay 6.0.5 as a possible replacement for our current product. We currently have an instance of iPlanet Directory Server in which contains all of the the user information that would need to be imported into Liferay. However, none of the entries have "email" or "password" included, and hence the import process will not complete.

Is there a workaround to allow for a successful import without these attributes available?

I have tried switching the attributes in the LDAP settings - for example substituting an attribute that I do have avalible in lieu of email or password, but to no avail.

Any assistance or input greatly appreciated.
thumbnail
Shagul Khajamohideen, modificado 13 Anos atrás.

RE: Need to Import from LDAP without password and email

Liferay Master Postagens: 758 Data de Entrada: 27/09/07 Postagens Recentes
Liferay allows the below settings in properties.


 #
    # Set this to false if you want to be able to create users without an email
    # address. An email address will be automatically assigned to a user based
    # on the property "users.email.address.auto.suffix".
    #
    users.email.address.required=true

    #
    # Set the suffix of the email address that will be automatically generated
    # for a user that does not have an email address. This property is not used
    # unless the property "users.email.address.required" is set to false. The
    # autogenerated email address will be the user id plus the specified suffix.
    #
    users.email.address.auto.suffix=@no-emailaddress.com




Also you could provide an attribute transformer if necessary to transform /remove certain attributes to the ones that you want to be imported in Liferay using the below property along with your implementation in a plugin hook.


#
    # You can write your own class that implements
    # com.liferay.portal.security.ldap.AttributesTransformer to transform the
    # LDAP attributes before a user or group is imported to the LDAP store.
    #
    ldap.attrs.transformer.impl=com.liferay.portal.security.ldap.DefaultAttributesTransformer

thumbnail
Joseph Wolfe, modificado 13 Anos atrás.

RE: Need to Import from LDAP without password and email

Regular Member Postagens: 103 Data de Entrada: 22/02/11 Postagens Recentes
Hello,

thanks for the info - worked correctly. Mow I am stuck on another one. Is there a setting that will allow for spaces in the screen name?

Thanks again!
thumbnail
Joseph Wolfe, modificado 13 Anos atrás.

RE: Need to Import from LDAP without password and email

Regular Member Postagens: 103 Data de Entrada: 22/02/11 Postagens Recentes
Joseph Wolfe:
Hello,

thanks for the info - worked correctly. Mow I am stuck on another one. Is there a setting that will allow for spaces in the screen name?

Thanks again!



would this do the trick:

Set the following in portal-ext.properties

users.screen.name.validator=com.liferay.portal.security.auth.LiberalScreenNameValidator

Note: Liferay uses a user's screen name in the user's My Community URL, WebDAV URL and probably a few other things. These things will not work if the user's screen name contains invalid characters such as \ and .