Configuring LDAP with jackrabbit for authentication

I do not have much experience with jackrabbit and LDAP. I am trying to authenticate jcr users through LDAP.

Any source of how this works?

I configured the repository.xml file as follows:

 <Security appName="Jackrabbit"> <SecurityManager class="org.apache.jackrabbit.core.DefaultSecurityManager" workspaceName="security"> </SecurityManager> <AccessManager class="org.apache.jackrabbit.core.security.DefaultAccessManager"> </AccessManager> <LoginModule class="com.sun.security.auth.module.LdapLoginModule"> <param name="userProvider" value="ldap://localhost:10389/o=sm" /> <param name="authIdentity" value="uid={USERNAME}, ou=users, o=sm" /> <param name="useSSL" value="false" /> <param name="debug" value="true" /> </LoginModule> </Security> 

When I run the application, I get the following exception:

 javax.security.auth.login.LoginException: Configured bean implementat ion class com.sun.security.auth.module.LdapLoginModule was not found. 

Any idea what is going wrong here?

+4
source share

Source: https://habr.com/ru/post/1444070/


All Articles