mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
s3-samr: fix return code of _samr_LookupRids when run with pdb_ldap.
when _samr_LookupRids is called with no rids, it needs to return NT_STATUS_NONE_MAPPED (not NT_STATUS_NO_MEMORY). Found by RPC-SAMR torture test. Guenther
This commit is contained in:
parent
a783b1e4da
commit
fbb1e990ab
@ -3977,6 +3977,11 @@ static NTSTATUS ldapsam_lookup_rids(struct pdb_methods *methods,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (num_rids == 0) {
|
||||
result = NT_STATUS_NONE_MAPPED;
|
||||
goto done;
|
||||
}
|
||||
|
||||
for (i=0; i<num_rids; i++)
|
||||
attrs[i] = SID_NAME_UNKNOWN;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user