You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Julien Garcia Gonzalez <ju...@lampiris.be> on 2015/02/20 15:42:46 UTC

CryptedCredential on TransientRepository ::

Hello,

I would like to connect by a crypted way to my transient repository, 
actually it's working with SimpleCredential.

But when I tried CryptedCredential I get this exception:

javax.jcr.LoginException: LoginModule ignored Credentials
     at 
org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1493)
     at 
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:381)
     at 
org.apache.jackrabbit.commons.AbstractRepository.login(AbstractRepository.java:123)

I'm doing this:

repository.login(newCryptedSimpleCredentials(newSimpleCredentials("admin","admin".toCharArray())));


Here is the security configuration in the xml:

<SecurityappName="Jackrabbit">
     <SecurityManagerclass="org.apache.jackrabbit.core.DefaultSecurityManager"workspaceName="security"/>
     <AccessManagerclass="org.apache.jackrabbit.core.security.DefaultAccessManager"/>
     <LoginModuleclass="org.apache.jackrabbit.core.security.simple.SimpleLoginModule">
         <paramname="anonymousId"value="anonymous"/>
         <paramname="adminId"value="admin"/>
     </LoginModule>
</Security>

Can you help me?

thank you in advance,

Julien Garcia Gonzalez

Re: CryptedCredential on TransientRepository ::

Posted by connuser1 connuser1 <co...@gmail.com>.
I am not sure if SimpleLoginModule supports CryptedSimpleCredentials. See
[1]

[1] -
https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authentication/AbstractLoginModule.java#L594


On Fri, Feb 20, 2015 at 8:12 PM, Julien Garcia Gonzalez <
julien.garcia@lampiris.be> wrote:

> Hello,
>
> I would like to connect by a crypted way to my transient repository,
> actually it's working with SimpleCredential.
>
> But when I tried CryptedCredential I get this exception:
>
> javax.jcr.LoginException: LoginModule ignored Credentials
>     at org.apache.jackrabbit.core.RepositoryImpl.login(
> RepositoryImpl.java:1493)
>     at org.apache.jackrabbit.core.TransientRepository.login(
> TransientRepository.java:381)
>     at org.apache.jackrabbit.commons.AbstractRepository.login(
> AbstractRepository.java:123)
>
> I'm doing this:
>
> repository.login(newCryptedSimpleCredentials(
> newSimpleCredentials("admin","admin".toCharArray())));
>
>
> Here is the security configuration in the xml:
>
> <SecurityappName="Jackrabbit">
>     <SecurityManagerclass="org.apache.jackrabbit.core.
> DefaultSecurityManager"workspaceName="security"/>
>     <AccessManagerclass="org.apache.jackrabbit.core.
> security.DefaultAccessManager"/>
>     <LoginModuleclass="org.apache.jackrabbit.core.security.
> simple.SimpleLoginModule">
>         <paramname="anonymousId"value="anonymous"/>
>         <paramname="adminId"value="admin"/>
>     </LoginModule>
> </Security>
>
> Can you help me?
>
> thank you in advance,
>
> Julien Garcia Gonzalez
>