s3-auth rename auth_ntlmssp_state -> auth_generic_state
[mat/samba.git] / source3 / rpc_server / dcesrv_ntlmssp.c
index 242695e0fd68ce14d5f19925c37a04521bc7a2a4..7ec174c6934781eb8da82d887d0df1fb47adb200 100644 (file)
@@ -35,7 +35,7 @@ NTSTATUS ntlmssp_server_auth_start(TALLOC_CTX *mem_ctx,
                                   const struct tsocket_address *remote_address,
                                   struct gensec_security **ctx)
 {
-       struct auth_ntlmssp_state *a = NULL;
+       struct auth_generic_state *a = NULL;
        NTSTATUS status;
 
        status = auth_ntlmssp_prepare(remote_address, &a);
@@ -53,6 +53,10 @@ NTSTATUS ntlmssp_server_auth_start(TALLOC_CTX *mem_ctx,
                gensec_want_feature(a->gensec_security, GENSEC_FEATURE_SEAL);
        }
 
+       if (is_dcerpc) {
+               gensec_want_feature(a->gensec_security, GENSEC_FEATURE_DCE_STYLE);
+       }
+
        status = auth_ntlmssp_start(a);
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(0, (__location__ ": auth_ntlmssp_start failed: %s\n",