diff options
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/idmap_passdb.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/winbindd/idmap_passdb.c b/source3/winbindd/idmap_passdb.c index 4731756d5a..4c26c5c466 100644 --- a/source3/winbindd/idmap_passdb.c +++ b/source3/winbindd/idmap_passdb.c @@ -77,12 +77,13 @@ static NTSTATUS idmap_pdb_sids_to_unixids(struct idmap_domain *dom, struct id_ma for (i = 0; ids[i]; i++) { enum lsa_SidType type; - union unid_t id; + uid_t uid; + gid_t gid; - if (pdb_sid_to_id(ids[i]->sid, &id, &type)) { + if (pdb_sid_to_id(ids[i]->sid, &uid, &gid, &type)) { switch (type) { case SID_NAME_USER: - ids[i]->xid.id = id.uid; + ids[i]->xid.id = uid; ids[i]->xid.type = ID_TYPE_UID; ids[i]->status = ID_MAPPED; break; @@ -90,7 +91,7 @@ static NTSTATUS idmap_pdb_sids_to_unixids(struct idmap_domain *dom, struct id_ma case SID_NAME_DOM_GRP: case SID_NAME_ALIAS: case SID_NAME_WKN_GRP: - ids[i]->xid.id = id.gid; + ids[i]->xid.id = gid; ids[i]->xid.type = ID_TYPE_GID; ids[i]->status = ID_MAPPED; break; |