summaryrefslogtreecommitdiff
path: root/source3/librpc
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-24 10:35:25 -0400
committerSimo Sorce <idra@samba.org>2010-07-28 12:24:44 -0400
commit1abcbd70aed327ae5233423ce74662241fa9d21a (patch)
treee23aae883f6df3b55359339863d2a030f4f67d92 /source3/librpc
parent135a82e78f9537fb7b7f4b82fb7cba065737675f (diff)
downloadsamba-1abcbd70aed327ae5233423ce74662241fa9d21a.tar.gz
samba-1abcbd70aed327ae5233423ce74662241fa9d21a.tar.bz2
samba-1abcbd70aed327ae5233423ce74662241fa9d21a.zip
s3-dcerpc: Add next authentication step with gssapi
Diffstat (limited to 'source3/librpc')
-rw-r--r--source3/librpc/rpc/dcerpc_gssapi.c15
-rw-r--r--source3/librpc/rpc/dcerpc_gssapi.h1
2 files changed, 14 insertions, 2 deletions
diff --git a/source3/librpc/rpc/dcerpc_gssapi.c b/source3/librpc/rpc/dcerpc_gssapi.c
index e3e5eedac4..d415369207 100644
--- a/source3/librpc/rpc/dcerpc_gssapi.c
+++ b/source3/librpc/rpc/dcerpc_gssapi.c
@@ -240,7 +240,7 @@ NTSTATUS gse_init_client(TALLOC_CTX *mem_ctx,
mech_set.elements = &gse_ctx->gss_mech;
gss_maj = gss_acquire_cred(&gss_min,
- gse_ctx->server_name,
+ GSS_C_NO_NAME,
GSS_C_INDEFINITE,
&mech_set,
GSS_C_INITIATE,
@@ -296,7 +296,8 @@ NTSTATUS gse_get_client_auth_token(TALLOC_CTX *mem_ctx,
case GSS_S_CONTINUE_NEEDED:
/* we will need a third leg */
gse_ctx->more_processing = true;
- status = NT_STATUS_MORE_PROCESSING_REQUIRED;
+ /* status = NT_STATUS_MORE_PROCESSING_REQUIRED; */
+ status = NT_STATUS_OK;
break;
default:
DEBUG(0, ("gss_init_sec_context failed with [%s]\n",
@@ -368,6 +369,11 @@ done:
return errstr;
}
+bool gse_require_more_processing(struct gse_context *gse_ctx)
+{
+ return gse_ctx->more_processing;
+}
+
DATA_BLOB gse_get_session_key(struct gse_context *gse_ctx)
{
return gse_ctx->session_key;
@@ -396,6 +402,11 @@ NTSTATUS gse_gen_client_auth_token(TALLOC_CTX *mem_ctx,
return NT_STATUS_NOT_IMPLEMENTED;
}
+bool gse_require_more_processing(struct gse_context *gse_ctx)
+{
+ return NT_STATUS_NOT_IMPLEMENTED;
+}
+
DATA_BLOB gse_get_session_key(struct gse_context *gse_ctx)
{
return data_blob_null;
diff --git a/source3/librpc/rpc/dcerpc_gssapi.h b/source3/librpc/rpc/dcerpc_gssapi.h
index c172cacc14..ea44e9e383 100644
--- a/source3/librpc/rpc/dcerpc_gssapi.h
+++ b/source3/librpc/rpc/dcerpc_gssapi.h
@@ -42,6 +42,7 @@ NTSTATUS gse_get_client_auth_token(TALLOC_CTX *mem_ctx,
DATA_BLOB *token_in,
DATA_BLOB *token_out);
+bool gse_require_more_processing(struct gse_context *gse_ctx);
DATA_BLOB gse_get_session_key(struct gse_context *gse_ctx);
#endif /* _CLI_PIPE_GSSAPI_H_ */