You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by AshokBS <as...@altimetrik.com> on 2014/02/24 14:27:23 UTC

How to configure Jackrabbit with LDAP server?

Hi, i am working on Jackrabbit for almost more than 2 weeks and now i have a
requirement to work on LDAP stuff. i.e  i want to *integrate Jackrabbit with
LDAP server*, how to do this? Pls provide me the steps or sample project if
existing? I need this bit urgent. Kindly help me with this, since i could
not locate any doc or steps about this integration.

My environment: I have launched Jackrabbit as a standalone jar (version :
java -jar jackrabbit-standalone-2.6.5.jar) and logged in with default creds:
username: admin and password: admin.

My requirement as said above is that, i should be able to login via LDAP
authentication for the repository which i will create and add some contents
into it.





--
View this message in context: http://jackrabbit.510166.n4.nabble.com/How-to-configure-Jackrabbit-with-LDAP-server-tp4660351.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

Re: How to configure Jackrabbit with LDAP server?

Posted by Angela Schreiber <an...@adobe.com>.
hi 

i never tried the com.sun.security.auth.module.LdapLoginModule
and therefore cannot tell you what kind of configuration is required
in order to get it running.

in general i would rather suggest to disable the LoginModule section
in the repository.xml and use a regular jaas.config instead. but
the configuration details i can't help you with.

once you have the authentication piece running it depends on the
rest of the security configuration whether you get the system running.
if you want to profit from the authorization shipped with jackrabbit
by default, you would also need to configure a PrincipalProvider
implementation
that can deal with the principals as they are set to the Subject
by the LDAPLoginModule.

if you don't want to rely on the authorization shipped with jackrabbit
you would need to change the overall security configuration accordingly.

hope that helps
angela

On 25/02/14 13:40, "AshokBS" <as...@altimetrik.com> wrote:

>Hi Michael, thanks for the quick response. I have gone through those links
>and couldn't find much wrt integration.
>
>I have tried the below steps in repository.xml since they said it was
>working in 1.4.5 version.
>The link is: 
>http://jackrabbit.510166.n4.nabble.com/jira-Created-JCR-1920-Upgrade-from-
>1-4-5-to-1-5-creates-exception-for-LDAP-authentication-tc542196.html
>
> <LoginModule class="com.sun.security.auth.module.LdapLoginModule">
>            
>            
>            
>            
> </LoginModule> 
>
>I have specified my ldap configuration details above. Is the above param
>settings sufficient?
>
>Also when i try to login to http://localhost:8080/repository/default/ with
>the above settings, it prompts me for username and password. But when i
>pass
>my username and pwd details, the below message is logged in the
>jackrabbit.log file.
>
>LdapLoginModule] searching for entry belonging to user: xyz
>LdapLoginModule] authentication failed
>LdapLoginModule] aborted authentication
>
>
>My question is, whether the above repository.xml file settings are enough
>for LDAP configuration? Am i missing somethings in addition to the above?
>Pls suggest
>
>
>
>
>--
>View this message in context:
>http://jackrabbit.510166.n4.nabble.com/How-to-configure-Jackrabbit-with-LD
>AP-server-tp4660351p4660362.html
>Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.


Re: How to configure Jackrabbit with LDAP server?

Posted by Michael Wechner <mi...@wyona.com>.
I am sorry, but I have never used Jackrabbit in combination with LDAP
myself, hence I cannot tell
whether your configuration is correct. But there must be somebody on
this mailing list with more experience,
whereas you might want to try to post your question to the user mailing list

https://jackrabbit.apache.org/mailing-lists.html

HTH

Michael



Am 25.02.14 13:40, schrieb AshokBS:
> Hi Michael, thanks for the quick response. I have gone through those links
> and couldn't find much wrt integration. 
>
> I have tried the below steps in repository.xml since they said it was
> working in 1.4.5 version. 
> The link is: 
> http://jackrabbit.510166.n4.nabble.com/jira-Created-JCR-1920-Upgrade-from-1-4-5-to-1-5-creates-exception-for-LDAP-authentication-tc542196.html
>
>  <LoginModule class="com.sun.security.auth.module.LdapLoginModule">
>             
>             
>             
>             
>  </LoginModule> 
>
> I have specified my ldap configuration details above. Is the above param
> settings sufficient?
>
> Also when i try to login to http://localhost:8080/repository/default/ with
> the above settings, it prompts me for username and password. But when i pass
> my username and pwd details, the below message is logged in the
> jackrabbit.log file.
>
> LdapLoginModule] searching for entry belonging to user: xyz
> LdapLoginModule] authentication failed
> LdapLoginModule] aborted authentication
>
>
> My question is, whether the above repository.xml file settings are enough
> for LDAP configuration? Am i missing somethings in addition to the above?
> Pls suggest
>
>
>
>
> --
> View this message in context: http://jackrabbit.510166.n4.nabble.com/How-to-configure-Jackrabbit-with-LDAP-server-tp4660351p4660362.html
> Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.


Re: How to configure Jackrabbit with LDAP server?

Posted by AshokBS <as...@altimetrik.com>.
Hi Michael, thanks for the quick response. I have gone through those links
and couldn't find much wrt integration. 

I have tried the below steps in repository.xml since they said it was
working in 1.4.5 version. 
The link is: 
http://jackrabbit.510166.n4.nabble.com/jira-Created-JCR-1920-Upgrade-from-1-4-5-to-1-5-creates-exception-for-LDAP-authentication-tc542196.html

 <LoginModule class="com.sun.security.auth.module.LdapLoginModule">
            
            
            
            
 </LoginModule> 

I have specified my ldap configuration details above. Is the above param
settings sufficient?

Also when i try to login to http://localhost:8080/repository/default/ with
the above settings, it prompts me for username and password. But when i pass
my username and pwd details, the below message is logged in the
jackrabbit.log file.

LdapLoginModule] searching for entry belonging to user: xyz
LdapLoginModule] authentication failed
LdapLoginModule] aborted authentication


My question is, whether the above repository.xml file settings are enough
for LDAP configuration? Am i missing somethings in addition to the above?
Pls suggest




--
View this message in context: http://jackrabbit.510166.n4.nabble.com/How-to-configure-Jackrabbit-with-LDAP-server-tp4660351p4660362.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.

Re: How to configure Jackrabbit with LDAP server?

Posted by Michael Wechner <mi...@wyona.com>.
see

http://jackrabbit.apache.org/frequently-asked-questions.html

and search for LDAP

HTH

Michael


Am 25.02.14 12:34, schrieb AshokBS:
> Hi , any inputs please?
>
>
>
> --
> View this message in context: http://jackrabbit.510166.n4.nabble.com/How-to-configure-Jackrabbit-with-LDAP-server-tp4660351p4660360.html
> Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.


Re: How to configure Jackrabbit with LDAP server?

Posted by AshokBS <as...@altimetrik.com>.
Hi , any inputs please?



--
View this message in context: http://jackrabbit.510166.n4.nabble.com/How-to-configure-Jackrabbit-with-LDAP-server-tp4660351p4660360.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.