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.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.