s3:cli_pipe.c: return NO_USER_SESSION_KEY in cli_get_session_key() for schannel
authorStefan Metzmacher <metze@samba.org>
Sat, 3 Aug 2013 06:50:54 +0000 (08:50 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 10 Aug 2013 07:18:58 +0000 (09:18 +0200)
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>
source3/rpc_client/cli_pipe.c

index 1c66bb3963f55956fa948ae1f8b918748e38ab66..ca0473ce47977168b757894323ac45a069c24709 100644 (file)
@@ -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: