s4:rpc_server/remote: reformat code to get "dcerpc_remote:use_machine_account"
authorStefan Metzmacher <metze@samba.org>
Wed, 21 Nov 2018 18:14:59 +0000 (19:14 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2019 02:13:38 +0000 (03:13 +0100)
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>
source4/rpc_server/remote/dcesrv_remote.c

index 6967216..fed5bc6 100644 (file)
@@ -54,8 +54,6 @@ static NTSTATUS remote_op_bind(struct dcesrv_call_state *dce_call, const struct
        struct composite_context        *pipe_conn_req;
        uint32_t flags = 0;
 
-       machine_account = lpcfg_parm_bool(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_remote", "use_machine_account", false);
-
        priv = talloc(dce_call->conn, struct dcesrv_remote_private);
        if (!priv) {
                return NT_STATUS_NO_MEMORY;     
@@ -77,6 +75,12 @@ static NTSTATUS remote_op_bind(struct dcesrv_call_state *dce_call, const struct
        pass = lpcfg_parm_string(dce_call->conn->dce_ctx->lp_ctx, NULL, "dcerpc_remote", "password");
        domain = lpcfg_parm_string(dce_call->conn->dce_ctx->lp_ctx, NULL, "dceprc_remote", "domain");
 
+       machine_account = lpcfg_parm_bool(dce_call->conn->dce_ctx->lp_ctx,
+                                         NULL,
+                                         "dcerpc_remote",
+                                         "use_machine_account",
+                                         false);
+
        credentials = dcesrv_call_credentials(dce_call);
 
        if (user && pass) {