From: Matthias Dieter Wallnöfer Date: Sun, 8 Jan 2012 15:41:54 +0000 (+0100) Subject: s4:join python code - write the SAM account name correctly X-Git-Tag: tevent-0.9.15~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=36e5526685b92cea6e5a1b389737574213cd98ab;p=thirdparty%2Fsamba.git s4:join python code - write the SAM account name correctly It is easier for the comprehension Reviewed-By: Andrew Bartlett --- diff --git a/source4/scripting/python/samba/join.py b/source4/scripting/python/samba/join.py index dc2ceef3390..5f8a107a37e 100644 --- a/source4/scripting/python/samba/join.py +++ b/source4/scripting/python/samba/join.py @@ -147,12 +147,12 @@ class dc_join(object): '''remove any DNs from a previous join''' try: # find the krbtgt link - print("checking samaccountname") + print("checking sAMAccountName") if ctx.subdomain: res = None else: res = ctx.samdb.search(base=ctx.samdb.get_default_basedn(), - expression='samAccountName=%s' % ldb.binary_encode(ctx.samname), + expression='sAMAccountName=%s' % ldb.binary_encode(ctx.samname), attrs=["msDS-krbTgtLink"]) if res: ctx.del_noerror(res[0].dn, recursive=True)