mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
s4-s3-upgrade: Check if there are duplicate sids for users and groups
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 31 02:23:17 CET 2012 on sn-devel-104
This commit is contained in:
parent
449ca75759
commit
bfa951db97
@ -617,7 +617,11 @@ Please fix this account before attempting to upgrade again
|
||||
|
||||
# Check for same user sid/group sid
|
||||
group_sids = set([str(g.sid) for g in grouplist])
|
||||
if len(grouplist) != len(group_sids):
|
||||
raise ProvisioningError("Please remove duplicate group sid entries before upgrade.")
|
||||
user_sids = set(["%s-%u" % (domainsid, u['rid']) for u in userlist])
|
||||
if len(userlist) != len(user_sids):
|
||||
raise ProvisioningError("Please remove duplicate user sid entries before upgrade.")
|
||||
common_sids = group_sids.intersection(user_sids)
|
||||
if common_sids:
|
||||
logger.error("Following sids are both user and group sids:")
|
||||
|
Loading…
x
Reference in New Issue
Block a user