diff options
author | Simo Sorce <idra@samba.org> | 2011-10-18 10:44:52 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2011-10-18 20:57:16 +0200 |
commit | 605d7d965a33d6a4be632dde9b15abb42801fdaf (patch) | |
tree | 01ae99dca9bf63e666e23bef155b40427f05a30e /source3/winbindd | |
parent | 94799db9b5d33ded34ad3e934da673a44d48094a (diff) | |
download | samba-605d7d965a33d6a4be632dde9b15abb42801fdaf.tar.gz samba-605d7d965a33d6a4be632dde9b15abb42801fdaf.tar.bz2 samba-605d7d965a33d6a4be632dde9b15abb42801fdaf.zip |
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 <idra@samba.org>
Autobuild-Date: Tue Oct 18 20:57:16 CEST 2011 on sn-devel-104
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; |