diff options
author | Michael Adam <obnox@samba.org> | 2012-11-18 13:51:13 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-12-03 08:48:22 +0100 |
commit | 28e7d73bdcdf1a3d588e92eee982ff01db53d65d (patch) | |
tree | 2ed0ec82b779cedb857bbe276c46675e9944af28 /source3/winbindd/winbindd_dual_srv.c | |
parent | da8d0263806260fdb4973f22fc874710bd490421 (diff) | |
download | samba-28e7d73bdcdf1a3d588e92eee982ff01db53d65d.tar.gz samba-28e7d73bdcdf1a3d588e92eee982ff01db53d65d.tar.bz2 samba-28e7d73bdcdf1a3d588e92eee982ff01db53d65d.zip |
s3:winbindd: use struct unixid instead of uint64 in Sids2Xids parent<->child
This implicitly also hands the type of the resulting unix-id that the idmap
backend has created back to the caller. This is important for backends that
would set a broader type than the requested one, e.g. rid backend returning
BOTH instead of UID or GID.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/winbindd/winbindd_dual_srv.c')
-rw-r--r-- | source3/winbindd/winbindd_dual_srv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index 9fb29115cd..35d9451177 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -222,9 +222,12 @@ NTSTATUS _wbint_Sids2UnixIDs(struct pipes_struct *p, struct wbint_TransID *id = &r->in.ids->ids[id_idx[j]]; if (ids[j].status != ID_MAPPED) { + id->xid.id = UINT32_MAX; + id->xid.type = ID_TYPE_NOT_SPECIFIED; continue; } - id->unix_id = ids[j].xid.id; + + id->xid = ids[j].xid; } } status = NT_STATUS_OK; |