Fix updating attributes with ldap backend

- Patch originally provided by Chmouel Boudjnah in review:
  https://review.openstack.org/45447

Change-Id: I645e0dba17f6a8d841dac07590c7f26ab65c5a72
Fixes-Bug: #1210515
Merge "Fix updating attributes with ldap backend"