1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-27 07:42:04 +03:00

s4-classicupgrade: Show more clearly what is wrong with the Adminstrator SID

This commit is contained in:
Andrew Bartlett
2012-09-03 18:50:16 +10:00
parent 3b3d7bb602
commit 2dd0e7141f

View File

@ -869,6 +869,7 @@ Please fix this account before attempting to upgrade again
for username in userdata:
if username.lower() == 'administrator':
if userdata[username].user_sid != dom_sid(str(domainsid) + "-500"):
logger.error("User 'Administrator' in your existing directory has SID %s, expected it to be %s" % (userdata[username].user_sid, dom_sid(str(domainsid) + "-500")))
raise ProvisioningError("User 'Administrator' in your existing directory does not have SID ending in -500")
if username.lower() == 'root':
if userdata[username].user_sid == dom_sid(str(domainsid) + "-500"):