1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s4:join python code - write the SAM account name correctly

It is easier for the comprehension

Reviewed-By: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Matthias Dieter Wallnöfer
2012-01-08 16:41:54 +01:00
committed by Andrew Bartlett
parent 4cf9923b09
commit 36e5526685

View File

@ -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)