The branch, master has been updated via 483525f73c5597c0c35de4288d97f53b9d3d262e (commit) from 0770028cbea5f13c0dda2b9a89803359bed66306 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 483525f73c5597c0c35de4288d97f53b9d3d262e Author: Andrew Tridgell <tri...@samba.org> Date: Thu Mar 12 15:20:25 2009 +1100 use a base64 encoded password when changing passwords This avoids problems with embedded control characters in password changes ----------------------------------------------------------------------- Summary of changes: source4/scripting/python/samba/samdb.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index 1c5a8df..b92a91e 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -28,6 +28,7 @@ import ldb from samba.idmap import IDmapDB import pwd import time +import base64 __docformat__ = "restructuredText" @@ -178,8 +179,8 @@ userAccountControl: %u dn: %s changetype: modify replace: userPassword -userPassword: %s -""" % (user_dn, password) +userPassword:: %s +""" % (user_dn, base64.b64encode(password)) self.modify_ldif(setpw) -- Samba Shared Repository