sobjects/ldapparser.py
changeset 8391 574cf17a9928
parent 8387 b59af20a868d
child 8392 c25b96ae4f8a
--- a/sobjects/ldapparser.py	Wed May 09 16:23:21 2012 +0200
+++ b/sobjects/ldapparser.py	Wed May 09 16:31:03 2012 +0200
@@ -71,7 +71,7 @@
                 # generate a dumb password if not fetched from ldap (see
                 # userPassword)
                 pwd = crypt_password(generate_password())
-                entity.cw_edited = Binary(pwd)
+                entity.cw_edited['upassword'] = Binary(pwd)
         return entity
 
     def after_entity_copy(self, entity, sourceparams):