summaryrefslogtreecommitdiffstats
path: root/source/client/ntclient.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-11-02 04:01:57 +0000
committerAndrew Tridgell <tridge@samba.org>1997-11-02 04:01:57 +0000
commit21878e7d8628d05786c3c76f2943e31df1096577 (patch)
tree39049dd2a7d2d06298958f55311cc69baf96247f /source/client/ntclient.c
parent1a454f818841bf016ff04fd70cd73a5964d56f2e (diff)
downloadsamba-21878e7d8628d05786c3c76f2943e31df1096577.tar.gz
samba-21878e7d8628d05786c3c76f2943e31df1096577.tar.xz
samba-21878e7d8628d05786c3c76f2943e31df1096577.zip
convert the credentials code back to uchar[8] from uint32[2]
This should fix the byte order problems (maybe!)
Diffstat (limited to 'source/client/ntclient.c')
-rw-r--r--source/client/ntclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/client/ntclient.c b/source/client/ntclient.c
index 59b4a7fe786..bf6531440e2 100644
--- a/source/client/ntclient.c
+++ b/source/client/ntclient.c
@@ -63,7 +63,7 @@ BOOL do_nt_login(char *desthost, char *myhostname,
UTIME zerotime;
- uint32 sess_key[2];
+ uchar sess_key[8];
char nt_owf_mach_pwd[16];
fstring mach_acct;
fstring mach_pwd;
@@ -221,8 +221,8 @@ BOOL do_nt_login(char *desthost, char *myhostname,
fstrcpy(mach_pwd , myhostname);
strcat(mach_acct, "$");
- clnt_chal.data[0] = 0x11111111;
- clnt_chal.data[1] = 0x22222222;
+ SIVAL(clnt_chal.data, 0, 0x11111111);
+ SIVAL(clnt_chal.data, 4, 0x22222222);
/* send a client challenge; receive a server challenge */
if (!do_lsa_req_chal(fnum, ++call_id, desthost, myhostname, &clnt_chal, &srv_chal))