Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
Silvano Fari
How to handle duplicate e-Mail Addresses in LDAP
15 de Fevereiro de 2011 00:29
Resposta

Silvano Fari

Ranking: Junior Member

Mensagens: 58

Data de entrada: 16 de Junho de 2010

Mensagens recentes

Hi, I have bound LR to a AD which contains user with the same e-Mail addresses. If this makes sense is an other question, which I don't want to discuss.

My customer has this situation and so I want to find a way to live with this situation.

Since we use screen name for login I don't see any reason for having unique email addresses.

There must be a way to go around this restriction. Isn't it?
Jonas Yuan
RE: How to handle duplicate e-Mail Addresses in LDAP
15 de Fevereiro de 2011 07:50
Resposta

Jonas Yuan

Ranking: Liferay Master

Mensagens: 993

Data de entrada: 26 de Abril de 2007

Mensagens recentes

Hi Silvalo,

Definitely, it can be done by a fix patch.

Is it your product? which version are you using? CE or EE?

Thanks

Jonas Yuan

==================
The Author of Liferay Books:
Liferay User Interface Development
Liferay Portal 6 Enterprise Intranets
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Silvano Fari
RE: How to handle duplicate e-Mail Addresses in LDAP
15 de Fevereiro de 2011 08:18
Resposta

Silvano Fari

Ranking: Junior Member

Mensagens: 58

Data de entrada: 16 de Junho de 2010

Mensagens recentes

Hi Jonas

I am using CE. How do have to make the fix patch?

Thanks
Silvano
Jonas Yuan
RE: How to handle duplicate e-Mail Addresses in LDAP
15 de Fevereiro de 2011 11:10
Resposta

Jonas Yuan

Ranking: Liferay Master

Mensagens: 993

Data de entrada: 26 de Abril de 2007

Mensagens recentes

Silvano Fari
RE: How to handle duplicate e-Mail Addresses in LDAP
16 de Fevereiro de 2011 00:01
Resposta

Silvano Fari

Ranking: Junior Member

Mensagens: 58

Data de entrada: 16 de Junho de 2010

Mensagens recentes

Hi Jonas

Thanks!
These are intresting articles about LDAP imports. But I don't understand exaclty what they have to do with my challenge of having duplicate e-Mail Addresses in LDAP and still be able to import the according users into liferay.

Best Regards
Silvano
Jonas Yuan
RE: How to handle duplicate e-Mail Addresses in LDAP
16 de Fevereiro de 2011 06:21
Resposta

Jonas Yuan

Ranking: Liferay Master

Mensagens: 993

Data de entrada: 26 de Abril de 2007

Mensagens recentes

Hi Silvano,

duplicate e-Mail Addresses in LDAP could be handled in the same way:

1) use screen name for search filter.
2) handle duplicate e-Mail Addresses in LDAP when importing

Hope that it helps,

Jonas Yuan
Hubert Felber
RE: How to handle duplicate e-Mail Addresses in LDAP
21 de Fevereiro de 2011 09:33
Resposta

Hubert Felber

Ranking: Regular Member

Mensagens: 157

Data de entrada: 23 de Novembro de 2009

Mensagens recentes

Silvano,

You'd have to overwrite UserLocalServiceImpl, check places where DuplicateUserEmailAddressException() is thrown.
aand...there's a unique index in indexes.sql
1create unique index IX_615E9F7A on User_ (companyId, emailAddress);

You'd have to make this non unique
1create index IX_615E9F7A on User_ (companyId, emailAddress);

Which is very ugly and might get you into trouble one day if Liferay changes something.

In our company many users have 2 different account names with same email-address. We cannot change this and have to arrange with that. We authenticate via screenname and the email is just an attribute on the user.

It would be nice, if Liferay supported this better. I dunno why there has to be a unique index on (companyId, emailAddress)

Hubert
Ram A
RE: How to handle duplicate e-Mail Addresses in LDAP
5 de Fevereiro de 2013 02:33
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Jonas Yuan:
Hi Silvano,

duplicate e-Mail Addresses in LDAP could be handled in the same way:

1) use screen name for search filter.
2) handle duplicate e-Mail Addresses in LDAP when importing

Hope that it helps,

Jonas Yuan



Hi Jonas,

I am new to liferay. i am using liferay 6.0.6.

i am also facing this type of issue because of duplicate emailaddress.
i am getting the error "Cannot insert duplicate key row in object 'dbo.User_' with unique index 'IX_615E9F7A'. after importing the users and while adding it to DB.

How can we handle duplicate emailaddress while importing?
Can we filter the users if he has the duplicate emailAddress with the users already existed in Lifera DB?
Is it possible to achieve this using portal-ext.properties?


Thanks in advance
Ram A