Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import users with same email #104

Open
user28020950 opened this issue Feb 28, 2024 · 0 comments
Open

Import users with same email #104

user28020950 opened this issue Feb 28, 2024 · 0 comments

Comments

@user28020950
Copy link

user28020950 commented Feb 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant