Import users with same email
user28020950 opened this issue · 0 comments
Hello,
I'm posting this in order to get some help.
Context:
I have test accounts in my current OpenLDAP (set up without osixia image) for which the email address used is identical. I want to do this myself.
Problem:
When importing my users via .ldif into the new "Osixia OpenLDAP" directory via PHPLdapAdmin, I get this error:
"Attribute value would not be unique
This update has been or will be cancelled, it would result in an attribute value not being unique. You might like to search the LDAP server for the offending entry."
When I click on "Search", in fact, there's another account already in the directory with the same email address."
Adding uid=myuser,ou=internal,ou=people,dc=my,dc=original,dc=company,dc=com Failed
LDIF text import
Could not add object uid=myuser,ou=internal,ou=people,dc=my,dc=original,dc=company,dc=com
LDAP said: Success
Error number: 0x00 (LDAP_SUCCESS)
Description: The operation completed successfully.
But in fact, the user is not added.
What I would like :
I'm looking for a way to remove or disable the uniqueness constraint from the mail attribute in order to import users who have the same email address.
I found something like this to set in config.php but it's not working :
$servers->setValue('unique','attrs',array('uid','uidNumber'));
https://stackoverflow.com/questions/40701612/how-can-i-create-multiple-contacts-in-ldap-with-the-same-email-address
I'm available for more details, thanks in advance for your help :)
Alex