summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-08-18 16:08:46 +0200
committerKarolin Seeger <kseeger@samba.org>2017-08-28 11:04:15 +0200
commit34137a10e79389ade3667efecb6b8d734b22c8f8 (patch)
treef3a4b62dd076fa012a6788ff56ae1f7f86b40d2c /source3/libsmb
parentc9eed50ba11db7f928a705e6d31399d597be8cb3 (diff)
downloadsamba-34137a10e79389ade3667efecb6b8d734b22c8f8.tar.gz
s3:libsmb: Pass domain to remote_password_change()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12975 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> (cherry picked from commit 7a554ee7dcefdff599ebc6fbf4e128b33ffccf29)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/passchange.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/passchange.c b/source3/libsmb/passchange.c
index c89b7ca85d1..48ffba8036f 100644
--- a/source3/libsmb/passchange.c
+++ b/source3/libsmb/passchange.c
@@ -30,7 +30,8 @@
Change a password on a remote machine using IPC calls.
*************************************************************/
-NTSTATUS remote_password_change(const char *remote_machine, const char *user_name,
+NTSTATUS remote_password_change(const char *remote_machine,
+ const char *domain, const char *user_name,
const char *old_passwd, const char *new_passwd,
char **err_str)
{
@@ -55,7 +56,7 @@ NTSTATUS remote_password_change(const char *remote_machine, const char *user_nam
creds = cli_session_creds_init(cli,
user_name,
- NULL, /* domain */
+ domain,
NULL, /* realm */
old_passwd,
false, /* use_kerberos */