Bug 55962 - wbinfo -u doesn't return output with many users
wbinfo -u doesn't return output with many users
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-3-errata
Assigned To: Arvid Requate
Julia Bremer
https://gitlab.com/samba-team/devel/s...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-04-12 15:14 CEST by Arvid Requate
Modified: 2023-05-03 15:40 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023032921000242
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2023-04-12 15:14:43 CEST
In domains with many users wbinfo -u doesn't return any output.

log.wb-<WINDOWSDOMAIN> shows

====================================================================
2023/03/30 13:06:19.928472,  1, pid=23789] ../../source3/rpc_client/
cli_pipe.c:554(cli_pipe_validate_current_pdu)
  ../../source3/rpc_client/cli_pipe.c:554: RPC fault code 
DCERPC_FAULT_BAD_STUB_DATA received from host <LOCALSERVERNAME>!
====================================================================

This seems to be caused by a bug in winbindd where it asks for more than the maximum of 1000 rids per request allowed by the `librpc/idl/samr.idl` (for samr_LookupRids).
Comment 1 Arvid Requate univentionstaff 2023-04-27 17:20:44 CEST
log.samba showed

[2023/03/30 13:06:19.928406, 1, pid=23755] ../../librpc/ndr/ndr.c:634(_ndr_pull_error)
    ndr_pull_samr_LookupRids: ndr_pull_error(Range Error): value out of range at librpc/gen_ndr/ndr_samr.c:8090
Comment 2 Arvid Requate univentionstaff 2023-04-27 17:23:57 CEST
r20004     | new upstream patch
cc1e700622 | advisory

Package: samba
Version: 2:4.16.8-1A~5.0.0.202304271715
Branch: ucs_5.0-0
Scope: errata5.0-3
Comment 3 Julia Bremer univentionstaff 2023-05-03 12:08:59 CEST
OK: wbinfo -u now shows users if more than 1000 users exist
OK: Patch by samba team
OK: YAML
Verified