ARTIFACTORY: How to Adjust LDAP timeout settings in Artifactory?
There are 2 properties that you can configure in order to change the timeout of LDAP authentication requests in Artifactory.
Socket timeout or Read time out is 10 seconds by default. This is the time Artifactory waits for a response from the LDAP server after an authentication request has been successfully sent.
Connect timeout is 10 seconds by default.. This is the time Artifactory waits before timing out when trying to reach the LDAP server.
How to Configure:
Prior to Artifactory version 7.71.x
Add the following lines, with the amount adjusted for your use case to the
$JFROG_HOME/artifactory/var/etc/artifactory/artifactory.system.properties file: (Please note that the value for these properties is to be set in milliseconds.) artifactory.security.ldap.socket.timeoutMillis=10000 artifactory.security.ldap.connect.timeoutMillis=10000
These modifications require Artifactory restart to take effect.
After Artifactory Version 7.71.x
Changes are now made under the Access microservice.
- Create a copy of the access.config.latest.yml found here:
$JFROG_HOME/artifactory/var/etc/access
- Rename it access.config.import.yml
- Add the following properties (Full reference here or in the access.config.template.yml ):
security: authentication: ldap: connect-timeout-millis: 10000 read-timeout-millis: 15000
You can read about this process for making changes in the access yml here .