Hi all,
I'm struggling with some intermittent machine authentication failures.. For the most part machine authentication has been working without any issues. I have a simple allow policy that checks for Machine Auth default role and allows all workstations on the network (with some ACLs). All workstations are set for Computer and User authentication.
During each successful attempt, I see host/[machine name].example.net in access tracker. The successful attempts generate the following logs in access tracker:
2020-02-10 18:20:08,645 [Th 41 Req 1249 SessId R00000068-01-5e420f58] INFO RadiusServer.Radius - rlm_eap_mschapv2: Received MSCHAPv2 Response from client
2020-02-10 18:20:08,645 [Th 41 Req 1249 SessId R00000068-01-5e420f58] INFO RadiusServer.Radius - rlm_mschap: MSCHAPv2 username used for challenge computation host/ws-MVdTest01.example.net
2020-02-10 18:20:08,645 [Th 41 Req 1249 SessId R00000068-01-5e420f58] INFO RadiusServer.Radius - rlm_mschap: Using domain example.net from User-Name attribute
2020-02-10 18:20:08,645 [Th 41 Req 1249 SessId R00000068-01-5e420f58] INFO RadiusServer.Radius - rlm_mschap: Domain example.net from User-Name does not match domain example from Object SID
2020-02-10 18:20:08,645 [Th 41 Req 1249 SessId R00000068-01-5e420f58] INFO RadiusServer.Radius - rlm_mschap: authenticating user WS-MVDTEST01$, domain example.net
2020-02-10 18:20:08,647 [Th 41 Req 1249 SessId R00000068-01-5e420f58] INFO RadiusServer.Radius - rlm_mschap: user WS-MVDTEST01$ authenticated successfully
2020-02-10 18:20:08,647[Th 41 Req 1249 SessId R00000068-01-5e420f58] INFO RadiusServer.Radius - MS-Chap User Authentication time = 2 ms
2020-02-10 18:20:08,647 [Th 41 Req 1249 SessId R00000068-01-5e420f58] INFO RadiusServer.Radius - rlm_eap_mschapv2: Sending MSCHAPv2 Success reply
However this will occasionally fail. When this happens I see a failure entry in access tracker indicating EXAMPLE\[hostname]$ as the username.
Detailed logs are as follows:
2020-02-10 17:56:59,827 [Th 44 Req 1220 SessId R00000065-01-5e4209eb] INFO RadiusServer.Radius - rlm_eap_mschapv2: Received MSCHAPv2 Response from client
2020-02-10 17:56:59,827 [Th 44 Req 1220 SessId R00000065-01-5e4209eb] INFO RadiusServer.Radius - rlm_mschap: MSCHAPv2 username used for challenge computation
2020-02-10 17:56:59,827 [Th 44 Req 1220 SessId R00000065-01-5e4209eb] INFO RadiusServer.Radius - rlm_mschap: Using domain EXAMPLE from User-Name attribute
2020-02-10 17:56:59,827 [Th 44 Req 1220 SessId R00000065-01-5e4209eb] INFO RadiusServer.Radius - rlm_mschap: authenticating user WS-MVDTEST01$, domain EXAMPLE
2020-02-10 17:56:59,839 [Th 44 Req 1220 SessId R00000065-01-5e4209eb] INFO RadiusServer.Radius - rlm_mschap: user WS-MVDTEST01$ authentication failed
2020-02-10 17:56:59,839 [Th 44 Req 1220 SessId R00000065-01-5e4209eb] ERROR RadiusServer.Radius - rlm_mschap: AD status:Logon failure (0xc000006d)
2020-02-10 17:56:59,839 [Th 44 Req 1220 SessId R00000065-01-5e4209eb] INFO RadiusServer.Radius - MS-Chap User Authentication time = 12 ms
2020-02-10 17:56:59,839 [Th 44 Req 1220 SessId R00000065-01-5e4209eb] ERROR RadiusServer.Radius - rlm_mschap: FAILED: MS-CHAP2-Response is incorrect
When this happens access tracker shows the following alert details:
RADIUS MSCHAP: AD status:Logon failure (0xc000006d)
MSCHAP: Authentication failed
EAP-MSCHAPv2: User authentication failure
I can't quite figure out what the endpoint or ClearPass is doing wrong in the failure situations. It seems like the computer lookups are failing. Has anyone else seen this before?
I've confirmed the that Machine AD search string in my auth source should be correct:
(&(sAMAccountName=%{Host:Name}$)(objectClass=computer))