[ldap] fix update script
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 13 Jul 2010 16:07:41 +0200
changeset 5969 caea22e82d83
parent 5968 2e039d1e150c
child 5970 fb8acdab4e12
[ldap] fix update script
misc/scripts/ldap_change_base_dn.py
--- a/misc/scripts/ldap_change_base_dn.py	Tue Jul 13 15:45:42 2010 +0200
+++ b/misc/scripts/ldap_change_base_dn.py	Tue Jul 13 16:07:41 2010 +0200
@@ -17,7 +17,7 @@
     newuserdn = olduserdn.replace(olddn, newdn)
     if newuserdn != olduserdn:
         print olduserdn, '->', newuserdn
-        sql("UPDATE entities SET extid='%s' WHERE eid=%s" % (b64encode(newdn), eid))
+        sql("UPDATE entities SET extid='%s' WHERE eid=%s" % (b64encode(newuserdn), eid))
 
 commit()