Microsoft NTLM (v2) 中的时间戳使用

timestamp use in Microsoft NTLM (v2)

本文关键字:时间戳 NTLM v2 Microsoft      更新时间:2023-10-16

我正在研究NTLM和NTLMv2协议的自定义实现,以便在Lync(Skype for Business(服务器上进行授权。在阅读官方规范和 http://davenport.sourceforge.net/ntlm.html 时,我有几个问题找不到答案。其中之一如下:

问题是关于 NTLMv2 响应(尤其是 blob(。它说 blob 应该包含时间戳

since January 1, 1601

.这是干什么用的?如果服务器不知道我的本地时间,它如何确保安全性。或者也许我应该使用服务器在类型 2 消息中提供的时间戳?

不完整的答案,但我现在还没有更好

或者也许我应该使用服务器在类型 2 消息中提供的时间戳?

是的。正如我评论MS-NLMP中上面链接的文档中所述

If NTLM v2 authentication is used, the client SHOULD send the timestamp in the
CHALLENGE_MESSAGE.<47>
If there exists a CHALLENGE_MESSAGE.TargetInfo.AvId ==
MsvAvTimestamp
Set Time to CHALLENGE_MESSAGE.TargetInfo.Value of that AVPair
Else
Set Time to Currenttime
Endif