summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-11-21 19:13:50 +0100
committerJeremy Allison <jra@samba.org>2019-01-12 03:13:38 +0100
commitd9b88ccd8110e5dc6a09e5f29fbffb2c5b41e3c3 (patch)
tree8b80ce63d51fb7ef1f6122ee77fa36d951e1af8a /source4
parent1f348d077b25eb674c099c9b3a7776750b39f4a2 (diff)
downloadsamba-d9b88ccd8110e5dc6a09e5f29fbffb2c5b41e3c3.tar.gz
s4:rpc_server/remote: reformat code to get "dcerpc_remote:binding"
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113 BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/remote/dcesrv_remote.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/rpc_server/remote/dcesrv_remote.c b/source4/rpc_server/remote/dcesrv_remote.c
index a3611adcb91..6967216554b 100644
--- a/source4/rpc_server/remote/dcesrv_remote.c
+++ b/source4/rpc_server/remote/dcesrv_remote.c
@@ -45,7 +45,7 @@ static NTSTATUS remote_op_bind(struct dcesrv_call_state *dce_call, const struct
const struct ndr_interface_table *table =
(const struct ndr_interface_table *)dce_call->context->iface->private_data;
struct dcesrv_remote_private *priv;
- const char *binding = lpcfg_parm_string(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_remote", "binding");
+ const char *binding = NULL;
const char *user, *pass, *domain;
struct cli_credentials *credentials;
bool must_free_credentials = false;
@@ -64,7 +64,11 @@ static NTSTATUS remote_op_bind(struct dcesrv_call_state *dce_call, const struct
priv->c_pipe = NULL;
dce_call->context->private_data = priv;
- if (!binding) {
+ binding = lpcfg_parm_string(dce_call->conn->dce_ctx->lp_ctx,
+ NULL,
+ "dcerpc_remote",
+ "binding");
+ if (binding == NULL) {
DEBUG(0,("You must specify a DCE/RPC binding string\n"));
return NT_STATUS_INVALID_PARAMETER;
}