create_mail_user_OpenLDAP.py crash during imoprting CSV file

Issue #116 resolved
Martin LEUSCH
created an issue

The script create_mail_user_OpenLDAP.py from iRedMail 0.9.7 return the following error when I try to import CSV file:

Traceback (most recent call last): File "./create_mail_user_OpenLDAP.py", line 300, in <module> ldif_writer.unparse(dn, data) File "/usr/lib/python2.7/dist-packages/ldif.py", line 201, in unparse self._unparseChangeRecord(record) File "/usr/lib/python2.7/dist-packages/ldif.py", line 180, in _unparseChangeRecord self._unparseAttrTypeandValue(mod_type,mod_val) File "/usr/lib/python2.7/dist-packages/ldif.py", line 139, in _unparseAttrTypeandValue if self._needs_base64_encoding(attr_type,attr_value): File "/usr/lib/python2.7/dist-packages/ldif.py", line 128, in _needs_base64_encoding not safe_string_re.search(attr_value) is None TypeError: expected string or buffer

The generated ldif file contain only the first user.

There no problem to import the same CSV file with create_mail_user_OpenLDAP.py from iRedMail 0.9.6 on the same server.

Comments (3)

  1. Log in to comment