There are two main approaches:
Provide administrator input to the Jackrabbit repository with which LoginModule is configured so that it can always connect to the repository. When connecting as an administrator, the user requests a repository with the provided credentials (for a regular user who is authenticated) to authenticate them.
In addition, all users have the opportunity to connect to the Jackrabbit logical device, so instead of connecting to the administrator login, you try to connect to the provided credentials, and if you connect, the user successfully connects (with this approach, I will often perform a simple request to check the correctness connections, for example, find the real username in the repository).
LoginModule , Jackrabbit, , LoginModule .