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:
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.
- Urgent issue? Pay iRedMail developer to solve it remotely at $39.