summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-02-14 02:02:55 +0000
committerHerb Lewis <herb@samba.org>2002-02-14 02:02:55 +0000
commit897f463dad2698bd4490fa1e15e97f54a3533ab4 (patch)
tree2ccb41bb8424a89a96fd6a8de15473f786a21ee4
parentb394b3303fdb69ffd2cbb84d2bbd9a4dc05a4118 (diff)
downloadsamba-897f463dad2698bd4490fa1e15e97f54a3533ab4.tar.gz
samba-897f463dad2698bd4490fa1e15e97f54a3533ab4.tar.xz
samba-897f463dad2698bd4490fa1e15e97f54a3533ab4.zip
fix joining domain on big endian machine when using -U to smbpasswd
-rw-r--r--source/utils/smbpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c
index 39a15a37867..f82e4d58b7d 100644
--- a/source/utils/smbpasswd.c
+++ b/source/utils/smbpasswd.c
@@ -453,7 +453,7 @@ static int join_domain_byuser(char *domain, char *remote_machine,
encode_pw_buffer((char *)pwbuf, machine_pwd, plen, False);
- nt_owf_genW(&upw, ntpw);
+ mdfour( ntpw, (char *)upw.buffer, plen);
}
/* Set password on machine account */