為什麼 Windows VPN MS-CHAP v2 會將錯誤代碼 649 對應到 812?

為什麼 Windows VPN MS-CHAP v2 會將錯誤代碼 649 對應到 812?

嘗試使用 MS-CHAP v2 建立 Windows VPN 連線時,為什麼錯誤 649 會對應到更通用的錯誤 812?前者似乎更有用。

向使用者顯示的對話方塊顯示錯誤 812,但此片段來自 svchost_RASCHAP.LOG。出現顯示伺服器實際上傳回了代碼 649。

[3084] 03-30 18:26:00:462: ChapMakeMessage,RBuf=00000000081213E2
[3084] 03-30 18:26:00:462: ChapCMakeMessage...
[3084] 03-30 18:26:00:462: CS_ResponseSent
[3084] 03-30 18:26:00:462: Message received...
04 00 00 0E 45 3D 36 34 39 20 52 3D 30 20 00 00 |....E=649 R=0 ..|
[3084] 03-30 18:26:00:462: Failure received...
[3084] 03-30 18:26:00:462: GetInfoFromFailure...
[3084] 03-30 18:26:00:462: RASDiag: Mapping to new error code: 812 (ERROR_SERVER_POLICY) instead of 649 (ERROR_NO_DIALIN_PERMISSION)
[3084] 03-30 18:26:00:462: GetInfoFromFailure done,e=812,r=0,v=2
[3084] 03-30 18:26:00:462: Auth failed for unknown reaons with no Retry :| error=812 retry-count=0
[3084] 03-30 18:26:00:462: Done :(
[3084] 03-30 18:26:00:462: ChapEnd

相關內容