diff options
author | Steve French <sfrench@us.ibm.com> | 2006-12-08 04:14:28 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-12-08 04:14:28 +0000 |
commit | 33ec32fae0e2c4433bfd1e74cbde6cb16604a719 (patch) | |
tree | d1752424d29d226e4d23868d186fdb16d66e6f25 /fs/cifs/cifspdu.h | |
parent | c99767974ebd2a719d849fdeaaa1674456f5283f (diff) | |
download | linux-33ec32fae0e2c4433bfd1e74cbde6cb16604a719.tar.gz linux-33ec32fae0e2c4433bfd1e74cbde6cb16604a719.tar.bz2 linux-33ec32fae0e2c4433bfd1e74cbde6cb16604a719.zip |
[CIFS] Fix NTLMv2 mounts to Windows servers
Windows servers are pickier about NTLMv2 than Samba.
This enables more secure mounts to Windows (not just Samba)
ie when "sec=ntlmv2" is specified on the mount.
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifspdu.h')
-rw-r--r-- | fs/cifs/cifspdu.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h index 6df9dadba647..068ef51edbf7 100644 --- a/fs/cifs/cifspdu.h +++ b/fs/cifs/cifspdu.h @@ -580,6 +580,12 @@ typedef union smb_com_session_setup_andx { /* format of NLTMv2 Response ie "case sensitive password" hash when NTLMv2 */ +#define NTLMSSP_SERVER_TYPE 1 +#define NTLMSSP_DOMAIN_TYPE 2 +#define NTLMSSP_FQ_DOMAIN_TYPE 3 +#define NTLMSSP_DNS_DOMAIN_TYPE 4 +#define NTLMSSP_DNS_PARENT_TYPE 5 + struct ntlmssp2_name { __le16 type; __le16 length; @@ -593,7 +599,7 @@ struct ntlmv2_resp { __le64 time; __u64 client_chal; /* random */ __u32 reserved2; - struct ntlmssp2_name names[1]; + struct ntlmssp2_name names[2]; /* array of name entries could follow ending in minimum 4 byte struct */ } __attribute__((packed)); |