summaryrefslogtreecommitdiffstats
path: root/source3/rpc_client/cli_pipe.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-09-22 20:28:01 -0700
committerAndrew Bartlett <abartlet@samba.org>2014-10-08 01:09:51 +0200
commit74dcde5347066016ae55f5575ac61061d1f5f7af (patch)
tree5b16c75a99a2843ec182028a09fed99acef50346 /source3/rpc_client/cli_pipe.c
parent14f6256c515ff4af4f478f947ad89b7edc8743cf (diff)
downloadsamba-74dcde5347066016ae55f5575ac61061d1f5f7af.tar.gz
samba-74dcde5347066016ae55f5575ac61061d1f5f7af.tar.xz
samba-74dcde5347066016ae55f5575ac61061d1f5f7af.zip
s3-rpc_client: Adapt cli_rpc_pipe_open_spnego to use enum credentials_kerberos_state
This allows us to pass this value in directly from the cli_credentials structure in winbindd. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/rpc_client/cli_pipe.c')
-rw-r--r--source3/rpc_client/cli_pipe.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index dc07495bfe..e3822d1640 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -3096,7 +3096,7 @@ done:
NTSTATUS cli_rpc_pipe_open_spnego(struct cli_state *cli,
const struct ndr_interface_table *table,
enum dcerpc_transport_t transport,
- const char *oid,
+ enum credentials_use_kerberos use_kerberos,
enum dcerpc_AuthLevel auth_level,
const char *server,
const char *domain,
@@ -3109,15 +3109,6 @@ NTSTATUS cli_rpc_pipe_open_spnego(struct cli_state *cli,
const char *target_service = table->authservices->names[0];
NTSTATUS status;
- enum credentials_use_kerberos use_kerberos;
-
- if (strcmp(oid, GENSEC_OID_KERBEROS5) == 0) {
- use_kerberos = CRED_MUST_USE_KERBEROS;
- } else if (strcmp(oid, GENSEC_OID_NTLMSSP) == 0) {
- use_kerberos = CRED_DONT_USE_KERBEROS;
- } else {
- return NT_STATUS_INVALID_PARAMETER;
- }
status = cli_rpc_pipe_open(cli, transport, table, &result);
if (!NT_STATUS_IS_OK(status)) {