summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-02 12:51:06 +1100
committerStefan Metzmacher <metze@samba.org>2012-01-11 09:04:41 +0100
commitb89a0439b3e38b6da739119d904d25901f34a8f8 (patch)
tree6aa28aea39e3c83b2c7eb27037f54d9d7ffd4e53 /source3/libsmb
parent1e5e219a4b6fa4add004a51a68c03b0182ed25f7 (diff)
downloadsamba-b89a0439b3e38b6da739119d904d25901f34a8f8.tar.gz
samba-b89a0439b3e38b6da739119d904d25901f34a8f8.tar.bz2
samba-b89a0439b3e38b6da739119d904d25901f34a8f8.zip
s3-librpc Rename and rework cli_rpc_pipe_open_ntlmssp() to be generic
This also includes renaming the helper function rpccli_ntlmssp_bind_data, and allows this function to operate on any gensec-supplied auth type. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/passchange.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/source3/libsmb/passchange.c b/source3/libsmb/passchange.c
index 2f6ff51632..684ffd91a1 100644
--- a/source3/libsmb/passchange.c
+++ b/source3/libsmb/passchange.c
@@ -148,13 +148,15 @@ NTSTATUS remote_password_change(const char *remote_machine, const char *user_nam
/* Try not to give the password away too easily */
if (!pass_must_change) {
- result = cli_rpc_pipe_open_ntlmssp(cli,
- &ndr_table_samr.syntax_id,
- NCACN_NP,
- DCERPC_AUTH_LEVEL_PRIVACY,
- domain, user,
- old_passwd,
- &pipe_hnd);
+ result = cli_rpc_pipe_open_generic_auth(cli,
+ &ndr_table_samr.syntax_id,
+ NCACN_NP,
+ DCERPC_AUTH_TYPE_NTLMSSP,
+ DCERPC_AUTH_LEVEL_PRIVACY,
+ remote_machine,
+ domain, user,
+ old_passwd,
+ &pipe_hnd);
} else {
/*
* If the user password must be changed the ntlmssp bind will