diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-06-12 11:03:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:18:02 -0500 |
commit | 694488d29c29e858df7638952282225300ceb5b6 (patch) | |
tree | ec0bd55959b8c5c63ad35980d7fa16e57e7b710e /source4/rpc_server/samr | |
parent | 72ac7767829257a6fb9c1b7243f399370f4af5c3 (diff) | |
download | samba-694488d29c29e858df7638952282225300ceb5b6.tar.gz samba-694488d29c29e858df7638952282225300ceb5b6.tar.bz2 samba-694488d29c29e858df7638952282225300ceb5b6.zip |
r7507: fixed the problem with users being shown too many times in acl
editors, and added a test for it.
(This used to be commit 9e428881f6fc0a422ac9011d847e8f692284397a)
Diffstat (limited to 'source4/rpc_server/samr')
-rw-r--r-- | source4/rpc_server/samr/dcesrv_samr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c index 9934a502de..b40028b880 100644 --- a/source4/rpc_server/samr/dcesrv_samr.c +++ b/source4/rpc_server/samr/dcesrv_samr.c @@ -2965,7 +2965,7 @@ static NTSTATUS samr_QueryDisplayInfo(struct dcesrv_call_state *dce_call, TALLOC switch(r->in.level) { case 1: - entriesGeneral[count].idx = count; + entriesGeneral[count].idx = count + 1; entriesGeneral[count].rid = objectsid->sub_auths[objectsid->num_auths-1]; entriesGeneral[count].acct_flags = @@ -2981,7 +2981,7 @@ static NTSTATUS samr_QueryDisplayInfo(struct dcesrv_call_state *dce_call, TALLOC break; case 2: case 3: - entriesFull[count].idx = count; + entriesFull[count].idx = count + 1; entriesFull[count].rid = objectsid->sub_auths[objectsid->num_auths-1]; entriesFull[count].acct_flags = @@ -2999,7 +2999,7 @@ static NTSTATUS samr_QueryDisplayInfo(struct dcesrv_call_state *dce_call, TALLOC break; case 4: case 5: - entriesAscii[count].idx = count; + entriesAscii[count].idx = count + 1; entriesAscii[count].account_name.string = samdb_result_string(res[i], "sAMAccountName", ""); |