summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_pipe_schannel.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-10 21:03:02 +1100
committerStefan Metzmacher <metze@samba.org>2012-01-18 16:23:23 +0100
commitc62af4f6526d5b4a47b70ecfc4c1c03b1b64cf18 (patch)
treed3253d05829569948981434cba9a93a213360e6f /source3/rpc_client/cli_pipe_schannel.c
parentf14bcdf8ec894d77f80e532859c2c7170406eaad (diff)
downloadsamba-c62af4f6526d5b4a47b70ecfc4c1c03b1b64cf18.tar.gz
samba-c62af4f6526d5b4a47b70ecfc4c1c03b1b64cf18.tar.bz2
samba-c62af4f6526d5b4a47b70ecfc4c1c03b1b64cf18.zip
s3-librpc Make cli_rpc_pipe_open_spnego_ntlmssp() generic
This also avoids passing NULL as the server to gensec_set_target_hostname() in spnego_generic_init_client(). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/rpc_client/cli_pipe_schannel.c')
-rw-r--r--source3/rpc_client/cli_pipe_schannel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_pipe_schannel.c b/source3/rpc_client/cli_pipe_schannel.c
index 2c937df0f0..4a11f08a12 100644
--- a/source3/rpc_client/cli_pipe_schannel.c
+++ b/source3/rpc_client/cli_pipe_schannel.c
@@ -27,6 +27,7 @@
#include "librpc/rpc/dcerpc.h"
#include "passdb.h"
#include "libsmb/libsmb.h"
+#include "auth/gensec/gensec.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_CLI
@@ -98,9 +99,11 @@ static NTSTATUS get_schannel_session_key_auth_ntlmssp(struct cli_state *cli,
struct rpc_pipe_client *netlogon_pipe = NULL;
NTSTATUS status;
- status = cli_rpc_pipe_open_spnego_ntlmssp(
+ status = cli_rpc_pipe_open_spnego(
cli, &ndr_table_netlogon.syntax_id, NCACN_NP,
+ GENSEC_OID_NTLMSSP,
DCERPC_AUTH_LEVEL_PRIVACY,
+ cli_state_remote_name(cli),
domain, username, password, &netlogon_pipe);
if (!NT_STATUS_IS_OK(status)) {
return status;