1

Topic: problems creating users create_mail_user_OpenLDAP.py

hi I'm trying to create users with this script create_mail_user_OpenLDAP.py the csv file with excel, I created the bug that is giving me the following
python create_mail_user_OpenLDAP.py ultimo.csv
<INFO> Remove exist file: ultimo.csv.ldif
Traceback (most recent call last):
   File "create_mail_user_OpenLDAP.py", line 212, in <module>
     dn, data = ldif_mailuser (domain, username, passwd, cn, quota, groups)
   File "create_mail_user_OpenLDAP.py", line 155, in ldif_mailuser
     username [0],
IndexError: string index out of range

any idea about it

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: problems creating users create_mail_user_OpenLDAP.py

If seems there's an empty line in your csv file.