Types of Timeouts in Credential Provider

Types of Timeouts in Credential Provider

87
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:00 PM


Question


What are the different types of timeout configurations in Credential Provider?



Environment


10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8

Answer


Generally, there are 3 types of timeout configurations in Credential Provider:

[Type 1] In the application - refers to the timeout the SDK itself will wait for the CP
ConnectionParms.Timeout parameter.

Documentation References (See: ConnectionParms.Timeout):
SDKDocumentation Link
Java SDKhttps://docs.cyberark.com/Product-Doc/OnlineHelp/AAM-CP/Latest/en/Content/CP%20for%20zOS/Working-with-the-Java-Application.htm?Highlight=setConnectionTimeout#!#_Ref439755922
.NET standard SDKhttps://docs.cyberark.com/Product-Doc/OnlineHelp/AAM-CP/Latest/en/Content/CP%20and%20ASCP/Net-Standard-EgsSyntax.htm?Highlight=setConnectionTimeout#!#ConnectionTimeout
.NET framework SDKhttps://docs.cyberark.com/Product-Doc/OnlineHelp/AAM-CP/Latest/en/Content/CP%20and%20ASCP/Net-Framework-EgsSyntax.htm?Highlight=setConnectionTimeout#!#_Ref416795399
C/C++https://docs.cyberark.com/Product-Doc/OnlineHelp/AAM-CP/Latest/en/Content/CP%20and%20ASCP/C-AP-SDK-EgsSyntax.htm?#!#_Ref416795059

[Type 2] In main_appprov.conf - refers to the timeout the CP shall wait for the application
TcpTimeout parameter.

Documentation References (See: TcpTimeout):
[Type 3] In Vault.ini – refers to the timeout the CP shall wait for a response from the Vault

Documentation Reference (See: Timeout):

https://docs.cyberark.com/Product-Doc/OnlineHelp/AAM-CP/Latest/en/Content/CP%20and%20ASCP/Configuration-Files-Vault_ini.htm?Highlight=Timeout

Between CP and Vault, you will see 3 timeout retries in the AppTrace.log.
Important Note: The number of retries is strictly 3 and it is not configurable


See example flow below:
  • TIMEOUT=4 configured in CP’s Vault.ini
  • Request sent at 13/10/2021 | 10:37:21 and timeout occurred at 13/10/2021 | 10:37:33
The duration for each of the 3 timeouts to occur is based on TIMEOUT value in Vault.ini - in this example, 4 seconds.
That is a total of 3*4=12 seconds from 10:37:21 to 10:37:33. 
  1. User sends CanUserLogon at 10:37:21 and timeout occurs at 10:37:25 (4 secs later)
[13/10/2021 | 10:37:21.565633] | {pid= 1708} | {tid=  3836} | class CCASPASVCExecuter * | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(214) |  ::  | Running PASVC [PASVCCanUserLogon] (control socket [1444]) data socket [0], IP [192.168.10.200] (Vault [AppProviderVault] user [Prov_PVWA01]) [13/10/2021 | 10:37:25.568584] | {pid= 1708} | {tid=  3836} | class CCASPASVCExecuter * | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(247) |  ::  | Done PASVC [PASVCCanUserLogon] Rc = -1 (Duration=4002 ms). (Vault [AppProviderVault] user [Prov_PVWA01]) [13/10/2021 | 10:37:25.568776] | {pid= 1708} | {tid=   3836} | class CCASSessionTransactionsMgr *  | ITA\(5359) |  ::  | Error (code = -1066012) is a comm error. (Vault [AppProviderVault] user [Prov_PVWA01]) [13/10/2021 | 10:37:25.570539] | {pid= 1708} | {tid=     3836} | class CCASPASVCExecuter * | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(573)               |  ::  | close and zero sockets before SaveSocketsIntoPool because failed on comm error [13/10/2021 | 10:37:25.570661] | {pid= 1708} | {tid=   3836} | class CCASPASVCExecuter * | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(484) |  ::  | ITACM012S Timeout has expired.  (Vault [AppProviderVault] user [Prov_PVWA01])
 
  1. User sends CanUserLogon again at 10:37:25 and timeout occurs at 10:37:29 (4 secs later)
[13/10/2021 | 10:37:25.570942] | {pid= 1708} | {tid= 3836} | class CCASPASVCExecuter * | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(214)  |  ::  | Running PASVC [PASVCCanUserLogon] (control socket [0]) data socket [0], IP [192.168.10.200] (Vault [AppProviderVault] user [Prov_PVWA01]) [13/10/2021 | 10:37:29.568493] | {pid= 1708} | {tid= 3836} | class CCASPASVCExecuter * | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(247)  |  ::  | Done PASVC [PASVCCanUserLogon] Rc = -1 (Duration=3997 ms). (Vault [AppProviderVault] user [Prov_PVWA01]) [13/10/2021 | 10:37:29.568614] | {pid= 1708} | {tid=  3836} | class CCASSessionTransactionsMgr *  | ITA\(5359) |  ::  | Error (code = -1066012) is a comm error. (Vault [AppProviderVault] user [Prov_PVWA01]) [13/10/2021 | 10:37:29.568661] | {pid= 1708} | {tid=  3836} | class CCASPASVCExecuter * | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(573) |  ::  | close and zero sockets before SaveSocketsIntoPool because failed on comm error [13/10/2021 | 10:37:29.568697] | {pid= 1708} | {tid=  3836} | class CCASPASVCExecuter *  | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(484)  |  ::  | ITACM012S Timeout has expired.  (Vault [AppProviderVault] user [Prov_PVWA01])
  1. User tries recovery - relogon at 10:37:29 and timeout at 10:37:33 (4 secs later)
[13/10/2021 | 10:37:29.568734] | {pid= 1708} | {tid=     3836} | class CCASSessionTransactionsMgr *  | ITA\(5557)   |  ::  | Starting Recovery Relogon procedure. (Vault [AppProviderVault] user [Prov_PVWA01]) … [13/10/2021 | 10:37:33.583931] | {pid= 1708} | {tid=     3836} | class CCASSessionTransactionsMgr *  | ITA\(5359) |  ::  | Error (code = -1066012) is a comm error. (Vault [AppProviderVault] user [Prov_PVWA01]) [13/10/2021 | 10:37:33.584014] | {pid= 1708} | {tid=     3836} | class CCASSessionTransactionsMgr *  | ITA\(1263) |  ::  | Executed first logon attempt, got -1 return code. [13/10/2021 | 10:37:33.584059] | {pid= 1708} | {tid=     3836} | class CCASSessionTransactionsMgr *  | ITA\(1276)   |  ::  | ITACM012S Timeout has expired.  (Vault [AppProviderVault] user [Prov_PVWA01]) [13/10/2021 | 10:37:33.584103] | {pid= 1708} | {tid=     3836} | class CCASSessionTransactionsMgr *  | ITA\(1668)    |  ::  | Finished PasswordLogon, returning code -1. [13/10/2021 | 10:37:33.584220] | {pid= 1708} | {tid=  3836} | class CCASSessionTransactionsMgr *  | ITA\(5595)    |  ::  | CASTM001E Session recovery logon failed. Reason: CASTM003E Vault transaction failed. Reason: ITACM012S Timeout has expired. .. (Vault [AppProviderVault] user [Prov_PVWA01]) [13/10/2021 | 10:37:33.584264] | {pid= 1708} | {tid=     3836} | class CCASPASVCExecuter *   | Caso\PASVCExecuters\CCASPASVCExecuter.cpp(351)   |  ::  | ITACM012S Timeout has expired.  (Vault [AppProviderVault] user [Prov_PVWA01]) [13/10/2021 | 10:37:33.584337] | {pid= 1708} | {tid=     3836} | class CAPPBaseException *  | APP\(85)  |  ::  | APPAP009E Application Password Provider exception occurred. APPAP007E Connection to the Vault has failed (Error: ITACM012S Timeout has expired. , Diagnostic Info: 11) (Codes: -1, -1)


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001BhTCAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail