jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Short <...@benshort.co.uk>
Subject Re: Users and Groups
Date Thu, 15 Apr 2010 08:53:00 GMT
Thanks Angela for getting back to me about this.

On 14 April 2010 10:05, Angela Schreiber <anchela@day.com> wrote:

> hi ben
>
>
> Ben Short wrote:
>
>>        Session mccSession = repository.login(mccUser.getCredentials());
>>
>
> that's the problem. UserImpl.getCredentials() doesn't return
> the SimpleCredentials that you can use for the login and so
> you get an anonymous session (see below).
>
> it works as expected if you did:
>
> Session mccSession = superuser.getRepository().login(new
> SimpleCredentials("mcc_user", "1234".toCharArray()));
>
> in other words: there is a bug but not in the ac evaluation.
>
> 1) API docu of User#getCredentials is insufficient.
> 2) and the LoginModule should not fallback to anonymous login
>   if cryptedsimplecredentials are passed but instead the login
>   should fail.
>
> i will take care of that.
>
> regards
> angela
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message