1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

winbind: Correcly pass !authoritative from wb_irpc_SamLogon

Returning an error at this level gives a RPC level error without the chance to
provide !authoritative flag to the caller. At the RPC level we're fine, but not
finding the domain to authenticate means that we don't know the domain and thus
have to return !authoritative.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Mar  7 13:16:00 CET 2017 on sn-devel-144
This commit is contained in:
Volker Lendecke 2017-03-04 18:40:09 +01:00
parent a6f4e60306
commit b7966221c7

View File

@ -141,7 +141,9 @@ static NTSTATUS wb_irpc_SamLogon(struct irpc_message *msg,
domain = find_auth_domain(0, target_domain_name);
if (domain == NULL) {
return NT_STATUS_NO_SUCH_USER;
req->out.result = NT_STATUS_NO_SUCH_USER;
req->out.authoritative = 0;
return NT_STATUS_OK;
}
DEBUG(5, ("wb_irpc_SamLogon called\n"));