1

Topic: create_mail_user_OpenLDAP.py for several domains & duplicate uid

Creating a bunch of emails for several domains with create_mail_user_OpenLDAP.py and a csv file, if there is the following cases:
name.surname@domainX.tld
name.surname@domainY.tld

The 2nd email won't be added while importing the ldif, getting the message:

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

I found that the duplicated attribute is the uid, since uses only the "name.surname", so can't import same email through distinc domains.

An easy workaround might be to change the uid to a format like name.surname.domain.tld, that will avoid the conflict, but before proceeding I'm wondering is this could cause any unpredictable results.

2

Re: create_mail_user_OpenLDAP.py for several domains & duplicate uid

rroca wrote:

change the uid to a format like name.surname.domain.tld

This uid is so long, your user won't like it. smile

3

Re: create_mail_user_OpenLDAP.py for several domains & duplicate uid

I mean keeping the format name.surname@domain.tld as user email, like before the migration.
Is the uid being used in something visible/relevant to the user?

4

Re: create_mail_user_OpenLDAP.py for several domains & duplicate uid

rroca wrote:

Is the uid being used in something visible/relevant to the user?

iRedMail doesn't use uid. Buy uid is always used as login username, such as ssh.