[prev in list] [next in list] [prev in thread] [next in thread]
List: slide-user
Subject: RE: Create a user dynamically
From: Alan Yu <Alan.Yu () j2global ! com>
Date: 2004-04-26 17:38:36
Message-ID: B3661EF919B7494BAF9DAB9EA391C4834DFC57 () j2exchange ! j2 ! com
[Download RAW message or body]
Hi, Ryan,
Thanks for your help. I didn't really get it when I first went through that
section. After you pointed it out, I reviewed it again. And I just tried and
it works now. I use JAASRealm.
By the way, do you or anyone else know how to configure the access
parameters that john is only able to access /files/john and john2 accesses
/files/john2 and new dynamically-created user john100 access only
/files/john100?
Thanks,
-Alan
-----Original Message-----
From: Ryan Rhodes [mailto:ryanshaerhodes@hotmail.com]
Sent: Friday, April 23, 2004 9:29 PM
To: slide-user@jakarta.apache.org
Subject: RE: Create a user dynamically
Hi Alan,
At the very bottom of the Security page, there is some information on this.
http://jakarta.apache.org/slide/howto-acl.html
It says:
*******************************************************
Although the creation and maintenance of principal resources (users,
roles/groups) is out of scope of the WebDAV/ACL specification, in Slide it
is currently possible through a proprietary extension to the MKCOL method,
provided the SlideRealm (wrappers.catalina.SlideRealm) is active.
Resources created by MKCOL at the locations specified by the parameters:
userspath (xpath: /slide/namespace/configuration/userspath,
groupspath (xpath: /slide/namespace/configuration/groupspath), or
rolespath (xpath: /slide/namespace/configuration/rolespath)
automatically become principals, i.e. the property DAV:resourcetype
automatically will contain the DAV:principal element.
******************************************
I am not using either SlideRealm or JAASRealm, so I think that SlideRealm is
no longer required to use MKCOL to create principles. I have only done this
using the commandline client so far, and I have not created roles with
MKCOL.
It isn't really feasible to add users to roles using the commandLine client,
because when you set the DAV:group-member-set property of the role, you have
to set all the members at once. I am setting them using WebdavResource in
the clientlib and also by directly manipulating the database.
The security documentation doesn't give an example value for
DAV:group-member-set. Here is an example value I have in the properties
table for DAV:group-member-set:
<D:href xmlns:D='DAV:'>/users/rhodesr</D:href><D:href
xmlns:D='DAV:'>/users/another_user</D:href>
-good luck
>From: Alan Yu <Alan.Yu@j2global.com>
>Reply-To: "Slide Users Mailing List" <slide-user@jakarta.apache.org>
>To: "'slide-user@jakarta.apache.org'" <slide-user@jakarta.apache.org>
>Subject: Create a user dynamically
>Date: Fri, 23 Apr 2004 18:47:55 -0700
>
>Hi, all,
>
>
>
>I just started playing with slide a few days ago. I am able to do
>customized
>authentication by using JAAS. And I am also able to upload/download files
>via Webdav client lib.
>
>
>
>But I am stuck with how to create a user dynamically on server side and
>allow the new users with same authorization access as John and John2. :-)
>My
>authentication LoginModule talks to my database. If both username and
>password match, I will pass the "Principle" to webdav servlet. But I don't
>have any idea how to create the new user on servlet. I searched the email
>archive and documentation and didn't find anything.
>
>
>
>I would really appreciate if anyone can help me out by sharing some of your
>sample code creating user or give me some hints.
>
>
>
>Thanks.
>
>-Alan
>
>
>
>
>
_________________________________________________________________
From must-see cities to the best beaches, plan a getaway with the Spring
Travel Guide! http://special.msn.com/local/springtravel.armx
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic