From af4dc306846a30a5a1201306cc2cbf4d494e16e7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 3 Aug 2013 08:50:54 +0200 Subject: s3:cli_pipe.c: return NO_USER_SESSION_KEY in cli_get_session_key() for schannel SCHANNEL connections don't have a user session key, they're like anonymous connections. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/rpc_client/cli_pipe.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source3/rpc_client') diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 1c66bb3963..ca0473ce47 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -3063,7 +3063,6 @@ NTSTATUS cli_get_session_key(TALLOC_CTX *mem_ctx, { NTSTATUS status; struct pipe_auth_data *a; - struct schannel_state *schannel_auth; struct gensec_security *gensec_security; DATA_BLOB sk = data_blob_null; bool make_dup = false; @@ -3079,12 +3078,6 @@ NTSTATUS cli_get_session_key(TALLOC_CTX *mem_ctx, } switch (cli->auth->auth_type) { - case DCERPC_AUTH_TYPE_SCHANNEL: - schannel_auth = talloc_get_type_abort(a->auth_ctx, - struct schannel_state); - sk = data_blob_const(schannel_auth->creds->session_key, 16); - make_dup = true; - break; case DCERPC_AUTH_TYPE_SPNEGO: case DCERPC_AUTH_TYPE_NTLMSSP: case DCERPC_AUTH_TYPE_KRB5: -- cgit