Skip to content

Import users with same email #104

@user28020950

Description

@user28020950

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions