diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-09-29 16:10:54 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-09-29 16:10:54 -0700 |
commit | 385015f8f2ea44e8f846e72c7bc74d4c489ae49e (patch) | |
tree | 605b99b5c9a0cdb989364565688abc2cd569c90d /source4 | |
parent | 750a848d0dbae8ea66a9f265294d7f95556c0c27 (diff) | |
download | samba-385015f8f2ea44e8f846e72c7bc74d4c489ae49e.tar.gz samba-385015f8f2ea44e8f846e72c7bc74d4c489ae49e.tar.bz2 samba-385015f8f2ea44e8f846e72c7bc74d4c489ae49e.zip |
unmapped SIDs should be rid 0 not rid -1
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/lsa/lsa_lookup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/rpc_server/lsa/lsa_lookup.c b/source4/rpc_server/lsa/lsa_lookup.c index acd3164b69..5f080e6da2 100644 --- a/source4/rpc_server/lsa/lsa_lookup.c +++ b/source4/rpc_server/lsa/lsa_lookup.c @@ -892,7 +892,10 @@ NTSTATUS dcesrv_lsa_LookupNames2(struct dcesrv_call_state *dce_call, r->out.sids->count++; r->out.sids->sids[i].sid_type = SID_NAME_UNKNOWN; - r->out.sids->sids[i].rid = 0xFFFFFFFF; + /* MS-LSAT 3.1.4.7 - rid zero is considered equivalent + to sid NULL - so we should return 0 rid for + unmapped entries */ + r->out.sids->sids[i].rid = 0; r->out.sids->sids[i].sid_index = 0xFFFFFFFF; r->out.sids->sids[i].unknown = 0; |