简体   繁体   中英

How to unlock a tomcat user in Lockout Realm using program

How shall I unblock a specific user using a program? Should I need to create any configuration files for doing this? Please guide me with the steps. I didn't find any proper documentation for unblocking a user on our own. Thanks in Advance

I'm not sure if there's a way to do it programmatically, but I do know for certain that you can browse to the LockOutRealm with JMX and put in a user account and unlock it. At minimum if nothing else works, you could programmatically invoke the JMX bean and unlock the account.

If you can find a way to lookup the org.apache.catalina.realm.LockOutRealm via JNDI, you may be able to find https://tomcat.apache.org/tomcat-8.0-doc/api/org/apache/catalina/realm/LockOutRealm.html#unlock(java.lang.String) method.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM