mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
s4:dcesrv_samr_GetGroupsForUser - return error code if a SID wasn't found
This shouldn't happen since SIDs are mandatory for security objects
This commit is contained in:
parent
a67fa2db3b
commit
731b4469cb
@ -3418,8 +3418,7 @@ static NTSTATUS dcesrv_samr_GetGroupsForUser(struct dcesrv_call_state *dce_call,
|
||||
|
||||
group_sid = samdb_result_dom_sid(mem_ctx, res[i], "objectSid");
|
||||
if (group_sid == NULL) {
|
||||
DEBUG(0, ("Couldn't find objectSid attrib\n"));
|
||||
continue;
|
||||
return NT_STATUS_INTERNAL_DB_CORRUPTION;
|
||||
}
|
||||
|
||||
array->rids[i + 1].rid =
|
||||
|
Loading…
x
Reference in New Issue
Block a user