summaryrefslogtreecommitdiffstats
path: root/source/include/ntdomain.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-02-09 07:03:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:09:59 -0500
commit5b3c2e63c73fee8949108abe19ac7a448a033a7f (patch)
tree04d6cad248201a310f8eb9c25dc65469a3fb344d /source/include/ntdomain.h
parent8ae70122b79fbe682c227ec2c4e5a72bf58d76de (diff)
downloadsamba-5b3c2e63c73fee8949108abe19ac7a448a033a7f.tar.gz
samba-5b3c2e63c73fee8949108abe19ac7a448a033a7f.tar.xz
samba-5b3c2e63c73fee8949108abe19ac7a448a033a7f.zip
r13407: Change the credentials code to be more like the Samba4 structure,
makes fixes much easier to port. Fix the size of dc->sess_key to be 16 bytes, not 8 bytes - only store 8 bytes in the inter-smbd store in secrets.tdb though. Should fix some uses of the dc->sess_key where we where assuming we could read 16 bytes. Jeremy.
Diffstat (limited to 'source/include/ntdomain.h')
-rw-r--r--source/include/ntdomain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/include/ntdomain.h b/source/include/ntdomain.h
index a30b7243727..82e212c0ca0 100644
--- a/source/include/ntdomain.h
+++ b/source/include/ntdomain.h
@@ -140,7 +140,7 @@ struct dcinfo {
DOM_CHAL clnt_chal; /* Client credential */
DOM_CHAL srv_chal; /* Server credential */
- uchar sess_key[8]; /* Session key */
+ uchar sess_key[16]; /* Session key - 8 bytes followed by 8 zero bytes */
uchar mach_pw[16]; /* md4(machine password) */
fstring mach_acct; /* Machine name we've authenticated. */