In Artifactory, when user login incorrect 5 times, it only lock 1 second, how can I increase this duration? Thanks.
问题:
回答1:
You can make this user locked until the Admin release it. This can be done by going to the Artifactory UI --> Admin --> Security Configuration --> User Locking --> And check the "Lock User After Exceeding Max Failed Login Attempts" checkbox. I don't know if you can increase the time of the "temporary" lock.
回答2:
By default, Artifactory comes with a built-in embedded Derby database.
You can try using my method:
Install Derby (http://db.apache.org/derby/papers/DerbyTut/install_software.html#derby_configure)
Go to location where you installed Artifactory
Connect to Artifactory Database: (You can replace version of Artifactory with the version you have installed)
java org.apache.derby.tools.ij
ij> connect 'jdbc:derby:/opt/artifactory-oss-6.0.1/data/derby';
(In my case, "/opt/artifactory-oss-6.0.1" is install location)
- Update admin user status from "blocked" to "enabled"
ij> update access_users set STATUS='enabled' where username='admin';
Finally, disconnect the database and restart Artifactory.