summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-08-03 08:50:54 +0200
committerStefan Metzmacher <metze@samba.org>2013-08-10 09:18:58 +0200
commitaf4dc306846a30a5a1201306cc2cbf4d494e16e7 (patch)
tree54422cf0821ff5e26cfcd04f6ddb3cbe81ba2751 /source3
parent838cb539621ef19cac6badb4b10678dcc3a6f68a (diff)
downloadsamba-af4dc306846a30a5a1201306cc2cbf4d494e16e7.tar.gz
samba-af4dc306846a30a5a1201306cc2cbf4d494e16e7.tar.bz2
samba-af4dc306846a30a5a1201306cc2cbf4d494e16e7.zip
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 <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_pipe.c7
1 files changed, 0 insertions, 7 deletions
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: