From 605d7d965a33d6a4be632dde9b15abb42801fdaf Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 18 Oct 2011 10:44:52 -0400 Subject: pdb-interface: Do not use unid_t here This interface needs to be publicly available, unid_t here is not really useful and makes it harder to use it as unid_t is not a public union. Autobuild-User: Simo Sorce Autobuild-Date: Tue Oct 18 20:57:16 CEST 2011 on sn-devel-104 --- source3/winbindd/idmap_passdb.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source3/winbindd') 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; -- cgit