summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2012-01-08 16:41:54 +0100
committerAndrew Bartlett <abartlet@samba.org>2012-02-09 00:27:08 +0100
commit36e5526685b92cea6e5a1b389737574213cd98ab (patch)
tree354e8065cc2093bd8ddf78a68fcd7f442bcbfdf3 /source4
parent4cf9923b09954a0605fb006e7d90d2fbff4d0a6b (diff)
downloadsamba-36e5526685b92cea6e5a1b389737574213cd98ab.tar.gz
samba-36e5526685b92cea6e5a1b389737574213cd98ab.tar.bz2
samba-36e5526685b92cea6e5a1b389737574213cd98ab.zip
s4:join python code - write the SAM account name correctly
It is easier for the comprehension Reviewed-By: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/join.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/join.py b/source4/scripting/python/samba/join.py
index dc2ceef339..5f8a107a37 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)