mirror of
https://github.com/samba-team/samba.git
synced 2025-12-03 04:23:50 +03:00
Don't accidentally return success when sending a broken NET_SAMLOGON
request. This exposes a domain authentication bug with win2k where a rpc fault is returned but not propagated up as an error.
This commit is contained in:
@@ -378,6 +378,7 @@ static NTSTATUS cli_net_sam_logon_internal(struct cli_state *cli, NET_ID_INFO_CT
|
|||||||
/* send the data on \PIPE\ */
|
/* send the data on \PIPE\ */
|
||||||
if (!rpc_api_pipe_req(cli, NET_SAMLOGON, &buf, &rbuf)) {
|
if (!rpc_api_pipe_req(cli, NET_SAMLOGON, &buf, &rbuf)) {
|
||||||
DEBUG(0,("cli_net_sam_logon_internal: Error rpc_api_pipe_req failed.\n"));
|
DEBUG(0,("cli_net_sam_logon_internal: Error rpc_api_pipe_req failed.\n"));
|
||||||
|
retval = NT_STATUS_UNSUCCESSFUL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user