MaxDynamicSessionsPerUser
Question
The default setting for the number of Maximum Dynamic User Sessions Per User is 300.
How can this be changed ?
Environment
Privileged Access Manager (PAM, self-hosted) Password Vault Web Access
Answer
There are 3 parameters in the dbparm.ini file in the Vault that control the dynamic session mechanism
MaxConcurrentUsers - Specifies the maximum concurrent number of users to be able to login to the Vault.
MaxDynamicSessionsPerUser - Specifies the maximum concurrent number of sessions that a user can have to the Vault.
MaxDynamicSessionsTotal - Specifies the total number of dynamic sessions, can be used in order to leave free sessions for "regular" session IDs.
If these parameters are not specifically defined in dbparm.ini then the following are the default values:-
MaxConcurrentUsers = 3000
MaxDynamicSessionsPerUser = 300
MaxDynamicSessionsTotal = 3000
The minimum and maximum values are as follows:-
MaxConcurrentUsers = 3000-32000
MaxDynamicSessionsPerUser = 0-32000
MaxDynamicSessionsTotal = 0-32000
These parameters are connected.
When MaxDynamicSessionsPerUser is not set in dbparm.ini it is calculated according to MaxDynamicSessionsPerUser = MaxConcurrentUsers/10. This is the recommended ratio.
When MaxDynamicSessionsTotal is not set in dbparm.ini it is set to be equal to MaxConcurrentUsers.
So, the Maximum Dynamic User Sessions Per User value can be changed by either increasing the MaxConcurrentUsers value or by specifying the MaxDynamicSessionsPerUser in the dbparm.ini file.
PLEASE NOTE:
- Changing the dbparm.ini file requires a vault restart for any parameter changes to apply
- Changing from default or recommended values may cause other vault performance issues
- Keep in mind that the default 300 session limit is set to limit the risk of DDOS attacks
- Ensure that a backup of the dbparm.ini file is available before making any changes.