mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
s3-py-passdb: Fix handling of uninitialized gid values
Uninitialized gid value is set to -1 and return as such from python passdb api. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Nov 18 06:18:33 CET 2011 on sn-devel-104
This commit is contained in:
committed by
Amitay Isaacs
parent
9318e00a1f
commit
cd3f552f4f
@ -674,7 +674,7 @@ Please fix this account before attempting to upgrade again
|
||||
logger.info("Importing groups")
|
||||
for g in grouplist:
|
||||
# Ignore uninitialized groups (gid = -1)
|
||||
if g.gid != 0xffffffff:
|
||||
if g.gid != -1:
|
||||
add_idmap_entry(result.idmap, g.sid, g.gid, "ID_TYPE_GID", logger)
|
||||
add_group_from_mapping_entry(result.samdb, g, logger)
|
||||
|
||||
|
Reference in New Issue
Block a user