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/src/libauth | |
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/src/libauth')
-rw-r--r-- | sys/src/libauth/auth_challenge.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/src/libauth/auth_challenge.c b/sys/src/libauth/auth_challenge.c index d21841a05..5ab0ee6a1 100644 --- a/sys/src/libauth/auth_challenge.c +++ b/sys/src/libauth/auth_challenge.c @@ -74,6 +74,15 @@ auth_response(Chalstate *c) goto Out; } } + if(c->dom){ + if(auth_rpc(c->rpc, "write", c->dom, strlen(c->dom)) != ARok){ + /* + * if this fails we're out of phase with factotum. + * give up. + */ + goto Out; + } + } if(auth_rpc(c->rpc, "write", c->resp, c->nresp) != ARok){ /* |