From 36e5526685b92cea6e5a1b389737574213cd98ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Sun, 8 Jan 2012 16:41:54 +0100 Subject: [PATCH] s4:join python code - write the SAM account name correctly It is easier for the comprehension Reviewed-By: Andrew Bartlett --- source4/scripting/python/samba/join.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.11.4.GIT