1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

winbindd: give an IRPC error if wb_irpc_SamLogon() is called without useful routing information

The caller should have checked this already!

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2017-07-21 12:29:31 +02:00 committed by Andreas Schneider
parent 615b0d83d0
commit ccc8c1a45d

View File

@ -188,6 +188,12 @@ static NTSTATUS wb_irpc_SamLogon(struct irpc_message *msg,
}
}
if (IS_DC && target_domain_name[0] == '\0') {
DBG_ERR("target_domain[%s] account[%s]\n",
target_domain_name, account_name);
return NT_STATUS_REQUEST_NOT_ACCEPTED;
}
domain = find_auth_domain(0, target_domain_name);
if (domain == NULL) {
DBG_INFO("target_domain[%s] for account[%s] not known\n",