You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by simer anand <si...@gmail.com> on 2009/10/09 07:46:12 UTC

Multiple users access to repository

 
Hello Users, 

                     I just want to know that is there any mechanism in
which we can have more than one user account such as one admin and more than
one users account to access repository. I searched a lot about this in forum
but didn't find a solution. Right now i' m using JAAS and username and
password is hardcoded into the LoginModule and it is used in the repository
but what i need is when i use DAVEXPLORER to locate Repository then there
must be some more user accounts in different roles in order to provide  them
access of limited nodes.

The repository must be storing the username and passwords somewhere, so
can't we do any thing related to adding/creating the users into the
repository.

Thanks,
simer
  
-- 
View this message in context: http://www.nabble.com/Multiple-users-access-to-repository-tp25815801p25815801.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: Multiple users access to repository

Posted by simer anand <si...@gmail.com>.


simer anand wrote:
> 
>  
> Hello Users, 
> 
>                      I just want to know that is there any mechanism in
> which we can have more than one user account such as one admin and more
> than one users account to access repository. I searched a lot about this
> in forum but didn't find a solution. Right now i' m using JAAS and
> username and password is hardcoded into the LoginModule and it is used in
> the repository but what i need is when i use DAVEXPLORER to locate
> Repository then there must be some more user accounts in different roles
> in order to provide  them access of limited nodes.
> 
> The repository must be storing the username and passwords somewhere, so
> can't we do any thing related to adding/creating the users into the
> repository.
> 
> Thanks,
> simer
>   
> 

Hello users, 
 
                       Is There any solution to the above stated problem.

Thanks,
simer


          

-- 
View this message in context: http://www.nabble.com/Multiple-users-access-to-repository-tp25815801p25850456.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: Multiple users access to repository

Posted by simer anand <si...@gmail.com>.
Hello Angela,


> sorry. but i don't get what you are trying to do.
> one time you want to create an implementation of the
> user manager api and the next time you come up with
> some sort of webdav issues...


Very true i started trying with Implementation of UserManager but
didn't got much help from forum so i left it out.

i'm lacking the very basic overview of your problem
> maybe some else can help you... but i don't get it
> and - no offense meant - i get the impression that you
> don't know it either.


Ok. Let me mention  it  again. Firstly my issue is that i want to have
multiple user access to my repository. Which i mentioned in this
post two weeks ago.

please be more specific about what you are trying to
> do, analyze what exact problem you are struggling
> with and write problem descriptions that enable people
> on the user list to help you.


Is there any way we can store username and password somewhere in repository
(in form of xml, etc.,) using which we can look into repository.
Its such simple query how can i add multiple user access into repository.
I' m  using jackrabbit1.5.6 and jaas LoginModule.

> Hello Users,

>
>                 I want to create more than one user in my repository. For
> this i started with Customizing the UserManager from
>  org.apache.jackrabbit.api.security.user.UserManager but that didn't work
> then i got new idea from friend and i need to confirm it you .
>
> Using SimpleWebdavServlet and customizing it
> public class MyWebdavServlet extends SimpleWebdavServlet{
>
>        @Override
>    protected void service(HttpServletRequest arg0, HttpServletResponse
> arg1)
>            throws ServletException, IOException {
>        // TODO Auto-generated method stub
>        super.service(arg0, arg1);
> .....
> }
>
> from arg0 you can get user credentilas and url you entered in browser. So
> if
> we could manage to make redirection to another URL we can implement
> multiuser issue.
> We can match in this method what credentials user entered and then return
> to
> response another URL e.g.
> we got /jackrabbit-webapp-1.6.0/repository/default/ from request and put
> /jackrabbit-webapp-1.6.0/repository/default/USER1 to response where
> /jackrabbit-webapp-1.6.0/repository/default/USER1 - is our user node URL in
> the repository.
>
>

Re: Multiple users access to repository

Posted by Angela Schreiber <an...@day.com>.
hi simer

sorry. but i don't get what you are trying to do.
one time you want to create an implementation of the
user manager api and the next time you come up with
some sort of webdav issues...

i'm lacking the very basic overview of your problem
maybe some else can help you... but i don't get it
and - no offense meant - i get the impression that you
don't know it either.

please be more specific about what you are trying to
do, analyze what exact problem you are struggling
with and write problem descriptions that enable people
on the user list to help you.

thanks
angela

 > Hello Users,
> 
>                  I want to create more than one user in my repository. For
> this i started with Customizing the UserManager from    
> org.apache.jackrabbit.api.security.user.UserManager but that didn't work
> then i got new idea from friend and i need to confirm it you .
> 
> Using SimpleWebdavServlet and customizing it 
> 
> public class MyWebdavServlet extends SimpleWebdavServlet{
> 
>     
>     @Override
>     protected void service(HttpServletRequest arg0, HttpServletResponse
> arg1)
>             throws ServletException, IOException {
>         // TODO Auto-generated method stub
>         super.service(arg0, arg1);
> .....
> }
> 
> from arg0 you can get user credentilas and url you entered in browser. So if
> we could manage to make redirection to another URL we can implement
> multiuser issue.
> We can match in this method what credentials user entered and then return to
> response another URL e.g.
> we got /jackrabbit-webapp-1.6.0/repository/default/ from request and put
> /jackrabbit-webapp-1.6.0/repository/default/USER1 to response where
> /jackrabbit-webapp-1.6.0/repository/default/USER1 - is our user node URL in
> the repository.
> 
> 
> Correct me if i' m wrong 
> 
> Any help would be greatful
> Thanks,
> simer
> 


Re: Multiple users access to repository

Posted by simer anand <si...@gmail.com>.
Hello Users,

                 I want to create more than one user in my repository. For
this i started with Customizing the UserManager from    
org.apache.jackrabbit.api.security.user.UserManager but that didn't work
then i got new idea from friend and i need to confirm it you .

Using SimpleWebdavServlet and customizing it 

public class MyWebdavServlet extends SimpleWebdavServlet{

    
    @Override
    protected void service(HttpServletRequest arg0, HttpServletResponse
arg1)
            throws ServletException, IOException {
        // TODO Auto-generated method stub
        super.service(arg0, arg1);
.....
}

from arg0 you can get user credentilas and url you entered in browser. So if
we could manage to make redirection to another URL we can implement
multiuser issue.
We can match in this method what credentials user entered and then return to
response another URL e.g.
we got /jackrabbit-webapp-1.6.0/repository/default/ from request and put
/jackrabbit-webapp-1.6.0/repository/default/USER1 to response where
/jackrabbit-webapp-1.6.0/repository/default/USER1 - is our user node URL in
the repository.


Correct me if i' m wrong 

Any help would be greatful
Thanks,
simer

-- 
View this message in context: http://www.nabble.com/Multiple-users-access-to-repository-tp25815801p25987336.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: Multiple users access to repository

Posted by simer anand <si...@gmail.com>.
Hello Angela, 


                     I' m using the Jackrabbit1.5.6. version and Using Jaas
Authentication for it. Now I tried to implement the UserManager but it's
showing some bugs and it's not clear where does actually this username and
passwords gets stored in repository.


Thanks, 
simer
 


                 
-- 
View this message in context: http://www.nabble.com/Multiple-users-access-to-repository-tp25815801p25969761.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: Multiple users access to repository

Posted by simer anand <si...@gmail.com>.
Hello Angela,

                    Thanks for replying.



> which version of jackrabbit are you referring to?
>
> more recent versions use to have a user management
> that can be accessed using the jackrabbit api. this
> should allow you to create users, groups.... etc...
>
> then you only have to make sure your login module is
> aware of the users... the defaultloginmodule present
> with the same versions pretty much works that way.
>
> please note however: limited access to certain nodes
> is not defined by the user management but by the access
> control mechanism you are having in your repo.
>
> hope that helps
> angela
>
>  Hello Users,
>>                     I just want to know that is there any mechanism in
>> which we can have more than one user account such as one admin and more
>> than
>> one users account to access repository. I searched a lot about this in
>> forum
>> but didn't find a solution. Right now i' m using JAAS and username and
>> password is hardcoded into the LoginModule and it is used in the
>> repository
>> but what i need is when i use DAVEXPLORER to locate Repository then there
>> must be some more user accounts in different roles in order to provide
>>  them
>> access of limited nodes.
>>
>> The repository must be storing the username and passwords somewhere, so
>> can't we do any thing related to adding/creating the users into the
>> repository.
>
>

                   I' m using Jackrabbit1.5.6 version. I' m using JAAS login
module for authentication.
                   What should do then? Should i go higher version of
Jackrabbit?


Thanks,
simer

Re: Multiple users access to repository

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

which version of jackrabbit are you referring to?

more recent versions use to have a user management
that can be accessed using the jackrabbit api. this
should allow you to create users, groups.... etc...

then you only have to make sure your login module is
aware of the users... the defaultloginmodule present
with the same versions pretty much works that way.

please note however: limited access to certain nodes
is not defined by the user management but by the access
control mechanism you are having in your repo.

hope that helps
angela

> Hello Users, 
> 
>                      I just want to know that is there any mechanism in
> which we can have more than one user account such as one admin and more than
> one users account to access repository. I searched a lot about this in forum
> but didn't find a solution. Right now i' m using JAAS and username and
> password is hardcoded into the LoginModule and it is used in the repository
> but what i need is when i use DAVEXPLORER to locate Repository then there
> must be some more user accounts in different roles in order to provide  them
> access of limited nodes.
> 
> The repository must be storing the username and passwords somewhere, so
> can't we do any thing related to adding/creating the users into the
> repository.
> 
> Thanks,
> simer
>