2

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

  • What does this question have to do with MongoDB Realm, the database, as tagged in the question? – Jay May 25 '22 at 18:12

1 Answers1

0

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.

Jonathan S. Fisher
  • 8,189
  • 6
  • 46
  • 84