# ERROR COMES WHEN ADD LDAP ENTRY

**URL:** <https://forum.ansible.com/t/error-comes-when-add-ldap-entry/23431>\
**Category:** Ansible Developer\
**Created:** [January 11, 2017, 10:44am UTC](https://forum.ansible.com/t/error-comes-when-add-ldap-entry/23431 "2017-01-11T10:44:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arvind\_Jha](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@Arvind\_Jha](https://forum.ansible.com/u/Arvind_Jha)\
**Post date:** [January 11, 2017, 10:44am UTC](https://forum.ansible.com/t/error-comes-when-add-ldap-entry/23431/1 "2017-01-11T10:44:08Z")

</div>

when i want to add ldap entry in bdb database using ansible following error is comming please help me out.

fatal: [IP: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “”, “module\_stdout”: “Traceback (most recent call last):\r\n File "/tmp/ansible\_wP6GR7/ansible\_module\_ldap\_entry.py", line 236, in \r\n main()\r\n File "/tmp/ansible\_wP6GR7/ansible\_module\_ldap\_entry.py", line 107, in main\r\n LdapEntry(module).main()\r\n File "/tmp/ansible\_wP6GR7/ansible\_module\_ldap\_entry.py", line 128, in **init** \r\n self.\_load\_attrs()\r\n File "/tmp/ansible\_wP6GR7/ansible\_module\_ldap\_entry.py", line 139, in \_load\_attrs\r\n self.attrs[name] = self.\_load\_attr\_values(name, raw)\r\n File "/tmp/ansible\_wP6GR7/ansible\_module\_ldap\_entry.py", line 148, in \_load\_attr\_values\r\n self.module.fail\_json(msg="{} must be a string or list of strings.".format(name))\r\nValueError: zero length field name in format\r\n”, “msg”: “MODULE FAILURE”}

Thanks and regards  
Arvind Jha  
[arvindjha38@gmail.com](mailto:arvindjha38@gmail.com)
