How to get around the need to have firstname and lastname email address in liferay to import authenticated users

My application uses liferay to connect to an LDAP server and import authenticated users. But many user entries in the ldap schema do not have an email id. Apparently this is preventing me from importing these users as liferay requires, among other things, an email id in order to successfully import new user records. I am wondering if my statement above is true. If so, then there is a way to work around this so that I can import any user s objectclass: inetOrgPerson

and has attributes cn

anduserPassword

Please correct me if I am wrong about any of them, and please provide a solution if any.

+3


source to share


1 answer


It won't be easy to remove Liferay's dependency on users who have a unique email address - it might be easier to configure them with a fake email address to import them.

If you come across this fake email address in Liferay UI and don't like it, you can always refresh the interface and hide the email address.



Another option is to update the terms and conditions under which each user must have an email address - for example, to contact them to reset their password if they ever forget about it.

But, since the meat of your question is to remove the need for an email address for the user: there is no simple radio button. I would advise against modifying this very central assumption. You can do it, but it won't be very good and probably not very maintainable (just think of the different "subscribe" options for the many components that Liferay comes with)

+1


source







All Articles