diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-05-20 22:49:24 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-05-20 22:49:24 +0200 |
commit | 6e19d19285dddcd3c8f2a6b031fc0f0324b3e48b (patch) | |
tree | ed9d6c1d7cf83555a498b01563a24284cb20b2d5 /sys/include/authsrv.h | |
parent | 40f6e00b9c4b0f5bdca1cc7caf27af23a6b10786 (diff) |
separate MSCHAP(v2) and NTLM(v2) authentication
due to linux omiting the final Z(4) in the NTLMv2 reply, and
the need for the windom for LMv2 authentication, here is a new
AuthNTLM ticket request now with length and dom fields.
Diffstat (limited to 'sys/include/authsrv.h')
-rw-r--r-- | sys/include/authsrv.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/include/authsrv.h b/sys/include/authsrv.h index 5c0b368e7..8fb2d08df 100644 --- a/sys/include/authsrv.h +++ b/sys/include/authsrv.h @@ -11,6 +11,7 @@ typedef struct Nvrsafe Nvrsafe; typedef struct Passwordreq Passwordreq; typedef struct OChapreply OChapreply; typedef struct OMSchapreply OMSchapreply; +typedef struct NTLMreply NTLMreply; typedef struct Authkey Authkey; @@ -62,6 +63,7 @@ enum AuthVNC=14, /* VNC server login (deprecated) */ AuthPAK=19, /* authenticated diffie hellman key agreement */ AuthMSchapv2=21,/* MS chap v2 authentication for ppp */ + AuthNTLM=22, /* NTLM authentication for cifs */ AuthTs=64, /* ticket encrypted with server's key */ AuthTc, /* ticket encrypted with client's key */ AuthAs, /* server generated authenticator */ @@ -127,6 +129,16 @@ struct OMSchapreply }; #define OMSCHAPREPLYLEN (ANAMELEN+24+24) +struct NTLMreply +{ + uchar len[2]; /* size of structure (lsb first) */ + char uid[ANAMELEN]; + char dom[DOMLEN]; + char LMresp[24]; /* Lan Manager response */ + char NTresp[24]; /* NT response (variable length) */ +}; +#define NTLMREPLYLEN (2+ANAMELEN+DOMLEN+24+24) + struct Authkey { char des[DESKEYLEN]; /* DES key from password */ |