jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien Launay <sebastienlau...@gmail.com>
Subject Re: Access control in Jackrabbit
Date Wed, 16 Dec 2009 08:35:09 GMT

2009/12/16 Zhenhua Guo <jenvor@gmail.com>:
> Thanks.
> IMHO, guest and anonymous user are the same (in terms of privileges).
> My solution is to use admin id,
>            SimpleCredentials adminCred = new
> SimpleCredentials("admin", new char[0]);
>            repoSession = repository.login(adminCred);
> Access control is done in higher level.

What i was trying to say is that for SimpleLoginModule there is two
kinds of people :).
The anonymous identified by the parameter anonymousId (configured by default to
'anonymous' username) with limited privileges and the others which
full privileges.

In your example 'admin' is part of the others kind and therefore can add node.

S├ębastien Launay

View raw message