Exchange servers with Basic auth disabled return 401 WWW-Authenticate:NTLM/Negotiate. Added pure-JS NTLMv2 implementation (no new deps) and auto-detection in CalDavProvider. - src/main/lib/ntlm.ts: MD4 (avoids OpenSSL 3.x legacy issues), Type1/Type2/Type3 message builder for NTLMv2 (HMAC-MD5 + NTProofStr + blob with server challenge) - CalDavProvider.req(): tries Basic first; on 401+NTLM header auto-switches to NTLM mode - CalDavProvider.reqNtlm(): 3-way handshake on a dedicated keepAlive/maxSockets:1 agent to guarantee both Negotiate and Authenticate use the same TCP connection Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| main | ||
| preload | ||
| renderer | ||
| shared/types | ||