Radius authentication fail with error "ITACM027S Communication error. (Diagnostic information: 527, 1002, 4)"
Symptom
The Raidus authentication fail with the following error:
"ITACM027S Communication error. (Diagnostic information: 527, 1002, 4)"
In the PVWA session log the following error can be found:
[15/01/2021 | 12:32:23.678655] | {pid= 1028} | {tid= 8516} | :: | Error (code = -1066027) is a an error that requires reseting the socket. (Vault [CAMainVault] user [<RadiusUserName>])
[15/01/2021 | 12:32:23.678688] | {pid= 1028} | {tid= 8516} | :: | close and zero sockets before SaveSocketsIntoPool because failed on comm error
[15/01/2021 | 12:32:23.678714] | {pid= 1028} | {tid= 8516} | :: | closing control socket [5884]
[15/01/2021 | 12:32:23.678791] | {pid= 1028} | {tid= 8516} | :: | closing data socket [6604]
[15/01/2021 | 12:32:23.678909] | {pid= 1028} | {tid= 8516} | :: | ITACM027S Communication error. (Diagnostic information: 527, 1002, 4) (Vault [CAMainVault] user [<RadiusUserName>])
[15/01/2021 | 12:32:23.678963] | {pid= 1028} | {tid= 8516} | :: | ITACM027S Communication error. (Diagnostic information: 527, 1002, 4) (Vault [CAMainVault] user [<RadiusUserName>])
[15/01/2021 | 12:32:23.679156] | {pid= 1028} | {tid= 8516} | :: | Cannot logon to Master (Active-Passive) Vault. (Vault [CAMainVault] user [<RadiusUserName>])
[15/01/2021 | 12:32:23.679577] | {pid= 1028} | {tid= 8516} | :: | Casos Session Request[LogonAs] ended.
[15/01/2021 | 12:32:23.681854] | {pid= 1028} | {tid= 8516} | :: | CASW084D Error in DoLogonAs. Error [ITACM027S Communication error. (Diagnostic information: 527, 1002, 4) ]
[15/01/2021 | 12:32:23.682064] | {pid= 1028} | {tid= 8516} | :: | CASW026D Remove session object
In the PVWA Session log we can see the Radius user actually successfully authenticated:
[15/01/2021 | 12:32:23.678572] | {pid= 1028} | {tid= 8516} | :: | Done PASVC [PASVCFullImpersonateEx] Rc = -1 (Duration=48277 ms).
As we can see from the above the transaction took 48 seconds. The client's timeout is 30 seconds (TIMEOUT in vault.ini). which can be seen from the Vault trace log:
2021-01-15 12:32:20.695 00002504 END PE 992 <RadiusUserName>[00] ServiceName=FullImpersonatePAAuthServVersion=11.1.0.8AuthType=RChangePassword=0DistinguishedName=DisconnectUser=YClientID=PVWAClientIP=10.78.28.111Options=0UserSessionId=0DomainName=UserName=<RadiusUserName> OK - Output Size = 200 Output Records Count = 1
The transaction ended successfully in the vault but the client did not get the respond due to the short timeout.
Environment
11.1;11.2;11.3;11.4;11.5
Password Vault Web Access RADIUS authentication
Cause
The timeout in the vault.ini file on PVWA set shorter than the timeout on the Radius.
Resolution
Adjust the TIMEOUT parameter in the PVWA's vault.ini file to 60 (or higher depending on the Radius). After that perform a IIS reset.
NOTE: By default the vault.ini file is located under "C:\CyberArk\Password Vault Web Access\VaultInfo\Vault.ini" (uncomment the TIMEOUT, meaning remove the # and change from 30 to 60).