summaryrefslogtreecommitdiff
path: root/source3/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
commit4012c1cc8f47c7b3271a76a362ed2e4be4e8405c (patch)
tree08fa06456fe3b5e730f16de34503bfe376fec99f /source3/client/ntclient.c
parent56eece129efcd8717cfdc507b7d34a073b024d68 (diff)
downloadsamba-4012c1cc8f47c7b3271a76a362ed2e4be4e8405c.tar.gz
samba-4012c1cc8f47c7b3271a76a362ed2e4be4e8405c.tar.bz2
samba-4012c1cc8f47c7b3271a76a362ed2e4be4e8405c.zip
convert the credentials code back to uchar[8] from uint32[2]
This should fix the byte order problems (maybe!) (This used to be commit 21878e7d8628d05786c3c76f2943e31df1096577)
Diffstat (limited to 'source3/client/ntclient.c')
-rw-r--r--source3/client/ntclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/client/ntclient.c b/source3/client/ntclient.c
index 59b4a7fe78..bf6531440e 100644
--- a/source3/client/ntclient.c
+++ b/source3/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))