You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Stefan Fromm <sf...@inf.tu-dresden.de> on 2004/08/23 19:55:42 UTC
Create own set of roles
Hello,
I want to create an own set of roles containing:
- administrator
- editor
- author
I want the "root"-user to be in role "administrator" and will have other users in the other roles. The problem is: as soon as I remove the "/roles/user" node from the Domain.xml I cannot authenticate as "root" anymore. I assume that there is a problem with the classes providing the roles like:
- slideroles.basic.UserRole and slideroles.basic.UserRoleImpl
- slideroles.basic.RootRole and slideroles.basic.RootRoleImpl
When I want to authenticate as user which is in role "editor" it doesn't work. I think I have to provide interfaces "xxxRole" and classes "xxxRoleImpl" for my roles. Is there anyone who can give me some hints if I'm right or wrong and hints on how to do it? I have some questions that are of interest for me:
Best regards
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Is Slide If: header compliant? (rfc2518 section 9.4)
Posted by Julian Reschke <ju...@gmx.de>.
Stefan Lützkendorf wrote:
> Yes, If header is handled by slide.
>
> If you have any cases that are not handled correctly, it is a severe bug
> and it would be good if you could report it.
>
> BTW If makes requests conditional in respect to locks, while the other
> four headers make them conditional in respect to content modification
> (given by last-modified-date and/or etag)
Well,
the If header can also be used to express conditions on ETags.
Best regards, Julian
--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Is Slide If: header compliant? (rfc2518 section 9.4)
Posted by James Mason <ma...@apache.org>.
Magic? ;)
kranga wrote:
> I don't have test cases, but if there is no code to handle the situation in
> the first place, how will it work?
>
> ----- Original Message -----
> From: "Stefan Lützkendorf" <lu...@apache.org>
> To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
> Sent: Thursday, August 26, 2004 9:31 AM
> Subject: Re: Is Slide If: header compliant? (rfc2518 section 9.4)
>
>
>
>>Do you have any test cases or scenarios in which slide responses
>>wrong with a given If header?
>>
>>I know there are testcases in the testsuite with If header. I will
>>have a look at it. But it would be good to know under what conditions
>>an error occurs.
>>
>>Stefan
>>
>>kranga wrote:
>>
>>
>>>Well then, I don't see where in the code the IF: header check is done.
>
> As I
>
>>>said, the only four IF checks that I see are:
>>>
>>>If-Match
>>>If-Modified-Since
>>>If-None-Match
>>>If-Unmodified-Since
>>>
>>>And these checks are done in the checkIfheader() method of
>>>AbstractWebdavMethod, AND they are only called in the GET and PUT method
>>>implementations! So I guess I have to report a bug...
>>>
>>>----- Original Message -----
>>>From: "Stefan Lützkendorf" <lu...@apache.org>
>>>To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
>>>Sent: Thursday, August 26, 2004 5:49 AM
>>>Subject: Re: Is Slide If: header compliant? (rfc2518 section 9.4)
>>>
>>>
>>>
>>>
>>>>Yes, If header is handled by slide.
>>>>
>>>>If you have any cases that are not handled correctly, it is a severe bug
>>>>and it would be good if you could report it.
>>>>
>>>>BTW If makes requests conditional in respect to locks, while the other
>>>>four headers make them conditional in respect to content modification
>>>>(given by last-modified-date and/or etag)
>>>>
>>>>Stefan
>>>>
>>>>kranga wrote:
>>>>
>>>>
>>>>
>>>>>Does Slide 2.0 handle the If: header? I see that the AbstractMethod
>>>
>>>class
>>>
>>>
>>>>>handles:
>>>>>
>>>>>If-Match
>>>>>If-Modified-Since
>>>>>If-None-Match
>>>>>If-Unmodified-Since
>>>>>
>>>>>but does it also handle the more generic If: header specified in
>
> section
>
>>>9.4
>>>
>>>
>>>>>of the webDAV protocol rfc2518 ? It seems like If can apply to all
>>>
>>>methods.
>>>
>>>
>>>>>I only see calls to checkIfHeaders in PUT and GET. The example in
>>>
>>>section
>>>
>>>
>>>>>9.4.2.1 of the RFC is shown with the COPY method. Any help is
>>>
>>>appreciated.
>>>
>>>
>>>>>Thanks
>>>>>K
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>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
>>>>
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>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
>>
>
>
>
> ---------------------------------------------------------------------
> 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
Re: Is Slide If: header compliant? (rfc2518 section 9.4)
Posted by kranga <kr...@k2d2.org>.
I don't have test cases, but if there is no code to handle the situation in
the first place, how will it work?
----- Original Message -----
From: "Stefan Lützkendorf" <lu...@apache.org>
To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
Sent: Thursday, August 26, 2004 9:31 AM
Subject: Re: Is Slide If: header compliant? (rfc2518 section 9.4)
> Do you have any test cases or scenarios in which slide responses
> wrong with a given If header?
>
> I know there are testcases in the testsuite with If header. I will
> have a look at it. But it would be good to know under what conditions
> an error occurs.
>
> Stefan
>
> kranga wrote:
>
> > Well then, I don't see where in the code the IF: header check is done.
As I
> > said, the only four IF checks that I see are:
> >
> > If-Match
> > If-Modified-Since
> > If-None-Match
> > If-Unmodified-Since
> >
> > And these checks are done in the checkIfheader() method of
> > AbstractWebdavMethod, AND they are only called in the GET and PUT method
> > implementations! So I guess I have to report a bug...
> >
> > ----- Original Message -----
> > From: "Stefan Lützkendorf" <lu...@apache.org>
> > To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
> > Sent: Thursday, August 26, 2004 5:49 AM
> > Subject: Re: Is Slide If: header compliant? (rfc2518 section 9.4)
> >
> >
> >
> >>Yes, If header is handled by slide.
> >>
> >>If you have any cases that are not handled correctly, it is a severe bug
> >>and it would be good if you could report it.
> >>
> >>BTW If makes requests conditional in respect to locks, while the other
> >>four headers make them conditional in respect to content modification
> >>(given by last-modified-date and/or etag)
> >>
> >>Stefan
> >>
> >>kranga wrote:
> >>
> >>
> >>>Does Slide 2.0 handle the If: header? I see that the AbstractMethod
> >
> > class
> >
> >>>handles:
> >>>
> >>>If-Match
> >>>If-Modified-Since
> >>>If-None-Match
> >>>If-Unmodified-Since
> >>>
> >>>but does it also handle the more generic If: header specified in
section
> >
> > 9.4
> >
> >>>of the webDAV protocol rfc2518 ? It seems like If can apply to all
> >
> > methods.
> >
> >>>I only see calls to checkIfHeaders in PUT and GET. The example in
> >
> > section
> >
> >>>9.4.2.1 of the RFC is shown with the COPY method. Any help is
> >
> > appreciated.
> >
> >>>Thanks
> >>>K
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>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
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Is Slide If: header compliant? (rfc2518 section 9.4)
Posted by Stefan Lützkendorf <lu...@apache.org>.
Do you have any test cases or scenarios in which slide responses
wrong with a given If header?
I know there are testcases in the testsuite with If header. I will
have a look at it. But it would be good to know under what conditions
an error occurs.
Stefan
kranga wrote:
> Well then, I don't see where in the code the IF: header check is done. As I
> said, the only four IF checks that I see are:
>
> If-Match
> If-Modified-Since
> If-None-Match
> If-Unmodified-Since
>
> And these checks are done in the checkIfheader() method of
> AbstractWebdavMethod, AND they are only called in the GET and PUT method
> implementations! So I guess I have to report a bug...
>
> ----- Original Message -----
> From: "Stefan Lützkendorf" <lu...@apache.org>
> To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
> Sent: Thursday, August 26, 2004 5:49 AM
> Subject: Re: Is Slide If: header compliant? (rfc2518 section 9.4)
>
>
>
>>Yes, If header is handled by slide.
>>
>>If you have any cases that are not handled correctly, it is a severe bug
>>and it would be good if you could report it.
>>
>>BTW If makes requests conditional in respect to locks, while the other
>>four headers make them conditional in respect to content modification
>>(given by last-modified-date and/or etag)
>>
>>Stefan
>>
>>kranga wrote:
>>
>>
>>>Does Slide 2.0 handle the If: header? I see that the AbstractMethod
>
> class
>
>>>handles:
>>>
>>>If-Match
>>>If-Modified-Since
>>>If-None-Match
>>>If-Unmodified-Since
>>>
>>>but does it also handle the more generic If: header specified in section
>
> 9.4
>
>>>of the webDAV protocol rfc2518 ? It seems like If can apply to all
>
> methods.
>
>>>I only see calls to checkIfHeaders in PUT and GET. The example in
>
> section
>
>>>9.4.2.1 of the RFC is shown with the COPY method. Any help is
>
> appreciated.
>
>>>Thanks
>>>K
>>>
>>>
>>>---------------------------------------------------------------------
>>>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
>>
>
>
>
> ---------------------------------------------------------------------
> 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
Re: Is Slide If: header compliant? (rfc2518 section 9.4)
Posted by kranga <kr...@k2d2.org>.
Well then, I don't see where in the code the IF: header check is done. As I
said, the only four IF checks that I see are:
If-Match
If-Modified-Since
If-None-Match
If-Unmodified-Since
And these checks are done in the checkIfheader() method of
AbstractWebdavMethod, AND they are only called in the GET and PUT method
implementations! So I guess I have to report a bug...
----- Original Message -----
From: "Stefan Lützkendorf" <lu...@apache.org>
To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
Sent: Thursday, August 26, 2004 5:49 AM
Subject: Re: Is Slide If: header compliant? (rfc2518 section 9.4)
> Yes, If header is handled by slide.
>
> If you have any cases that are not handled correctly, it is a severe bug
> and it would be good if you could report it.
>
> BTW If makes requests conditional in respect to locks, while the other
> four headers make them conditional in respect to content modification
> (given by last-modified-date and/or etag)
>
> Stefan
>
> kranga wrote:
>
> > Does Slide 2.0 handle the If: header? I see that the AbstractMethod
class
> > handles:
> >
> > If-Match
> > If-Modified-Since
> > If-None-Match
> > If-Unmodified-Since
> >
> > but does it also handle the more generic If: header specified in section
9.4
> > of the webDAV protocol rfc2518 ? It seems like If can apply to all
methods.
> > I only see calls to checkIfHeaders in PUT and GET. The example in
section
> > 9.4.2.1 of the RFC is shown with the COPY method. Any help is
appreciated.
> >
> > Thanks
> > K
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Is Slide If: header compliant? (rfc2518 section 9.4)
Posted by Stefan Lützkendorf <lu...@apache.org>.
Yes, If header is handled by slide.
If you have any cases that are not handled correctly, it is a severe bug
and it would be good if you could report it.
BTW If makes requests conditional in respect to locks, while the other
four headers make them conditional in respect to content modification
(given by last-modified-date and/or etag)
Stefan
kranga wrote:
> Does Slide 2.0 handle the If: header? I see that the AbstractMethod class
> handles:
>
> If-Match
> If-Modified-Since
> If-None-Match
> If-Unmodified-Since
>
> but does it also handle the more generic If: header specified in section 9.4
> of the webDAV protocol rfc2518 ? It seems like If can apply to all methods.
> I only see calls to checkIfHeaders in PUT and GET. The example in section
> 9.4.2.1 of the RFC is shown with the COPY method. Any help is appreciated.
>
> Thanks
> K
>
>
> ---------------------------------------------------------------------
> 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
Is Slide If: header compliant? (rfc2518 section 9.4)
Posted by kranga <kr...@k2d2.org>.
Does Slide 2.0 handle the If: header? I see that the AbstractMethod class
handles:
If-Match
If-Modified-Since
If-None-Match
If-Unmodified-Since
but does it also handle the more generic If: header specified in section 9.4
of the webDAV protocol rfc2518 ? It seems like If can apply to all methods.
I only see calls to checkIfHeaders in PUT and GET. The example in section
9.4.2.1 of the RFC is shown with the COPY method. Any help is appreciated.
Thanks
K
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Create own set of roles
Posted by Stefan Fromm <sf...@inf.tu-dresden.de>.
I use Jetty 4.2.20. I have also tried it with Tomcat 5.0.x and it works too. Slide takes care about authorization and the servlet container takes care about authentication.
Stefan
Am Tue, 24 Aug 2004 09:50:23 -0700 schrieb James Mason <ma...@apache.org>:
> Which app server are you using? I'm curious if this is a standard behavior that we could take advantage of in the default web.xml file. It seems like it would simplify things.
>
> -James
>
> Stefan Fromm wrote:
>
>> I've made web.xml independent of Slide roles. In the element /web-app/security-constraint/auth-constraint/role-name I just give the value * for all roles. That means that all roles are allowed to execute the HTTP-methods on all resources. The real authorization is performed by Slide. With these settings the authentication is activated in the servlet container.
>>
>> The elements /web-app/servlet/security-role-ref and /web-app/security-role/ are removed.
>>
>> Stefan
>>
>>
>>
>> Am Tue, 24 Aug 2004 11:09:02 +0200 schrieb Stefan Fromm <sf...@inf.tu-dresden.de>:
>>
>>> Hello James,
>>>
>>> I found the problem. I had to change the web.xml of the war file and introduce my set of roles there. Then I could use JAAS authentication.
>>>
>>> I'm thinking of the user/roles-administration application written with the projector framework. Could it be that just creating the users and roles in Slide is not enough, because the web.xml must also be changed? Or is there a way to set security constraints in web.xml in a way that I don't need to refer to my specific set of roles, but still can have authentication only against roles from my set of roles?
>>>
>>> Stefan
>>>
>>> Am Mon, 23 Aug 2004 11:22:08 -0700 schrieb James Mason <ma...@apache.org>:
>>>
>>>> Creating your own roles should be fine. The JNDIPrincipalStore doesn't create the default roles and it works fine. Make sure if you remove the user role that you change any permissions that were assigned to that role in Domain.xml to another role that still exists.
>>>>
>>>> -James
>>>>
>>>> Stefan Fromm wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I want to create an own set of roles containing:
>>>>>
>>>>> - administrator
>>>>> - editor
>>>>> - author
>>>>>
>>>>> I want the "root"-user to be in role "administrator" and will have other users in the other roles. The problem is: as soon as I remove the "/roles/user" node from the Domain.xml I cannot authenticate as "root" anymore. I assume that there is a problem with the classes providing the roles like:
>>>>>
>>>>> - slideroles.basic.UserRole and slideroles.basic.UserRoleImpl
>>>>> - slideroles.basic.RootRole and slideroles.basic.RootRoleImpl
>>>>>
>>>>> When I want to authenticate as user which is in role "editor" it doesn't work. I think I have to provide interfaces "xxxRole" and classes "xxxRoleImpl" for my roles. Is there anyone who can give me some hints if I'm right or wrong and hints on how to do it? I have some questions that are of interest for me:
>>>>>
>>>>> Best regards
>>>>> Stefan
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>
> ---------------------------------------------------------------------
> 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
Re: Create own set of roles
Posted by James Mason <ma...@apache.org>.
Which app server are you using? I'm curious if this is a standard
behavior that we could take advantage of in the default web.xml file. It
seems like it would simplify things.
-James
Stefan Fromm wrote:
> I've made web.xml independent of Slide roles. In the element
> /web-app/security-constraint/auth-constraint/role-name I just give the
> value * for all roles. That means that all roles are allowed to execute
> the HTTP-methods on all resources. The real authorization is performed
> by Slide. With these settings the authentication is activated in the
> servlet container.
>
> The elements /web-app/servlet/security-role-ref and
> /web-app/security-role/ are removed.
>
> Stefan
>
>
>
> Am Tue, 24 Aug 2004 11:09:02 +0200 schrieb Stefan Fromm
> <sf...@inf.tu-dresden.de>:
>
>> Hello James,
>>
>> I found the problem. I had to change the web.xml of the war file and
>> introduce my set of roles there. Then I could use JAAS authentication.
>>
>> I'm thinking of the user/roles-administration application written with
>> the projector framework. Could it be that just creating the users and
>> roles in Slide is not enough, because the web.xml must also be
>> changed? Or is there a way to set security constraints in web.xml in a
>> way that I don't need to refer to my specific set of roles, but still
>> can have authentication only against roles from my set of roles?
>>
>> Stefan
>>
>> Am Mon, 23 Aug 2004 11:22:08 -0700 schrieb James Mason
>> <ma...@apache.org>:
>>
>>> Creating your own roles should be fine. The JNDIPrincipalStore
>>> doesn't create the default roles and it works fine. Make sure if you
>>> remove the user role that you change any permissions that were
>>> assigned to that role in Domain.xml to another role that still exists.
>>>
>>> -James
>>>
>>> Stefan Fromm wrote:
>>>
>>>> Hello,
>>>>
>>>> I want to create an own set of roles containing:
>>>>
>>>> - administrator
>>>> - editor
>>>> - author
>>>>
>>>> I want the "root"-user to be in role "administrator" and will have
>>>> other users in the other roles. The problem is: as soon as I remove
>>>> the "/roles/user" node from the Domain.xml I cannot authenticate as
>>>> "root" anymore. I assume that there is a problem with the classes
>>>> providing the roles like:
>>>>
>>>> - slideroles.basic.UserRole and slideroles.basic.UserRoleImpl
>>>> - slideroles.basic.RootRole and slideroles.basic.RootRoleImpl
>>>>
>>>> When I want to authenticate as user which is in role "editor" it
>>>> doesn't work. I think I have to provide interfaces "xxxRole" and
>>>> classes "xxxRoleImpl" for my roles. Is there anyone who can give me
>>>> some hints if I'm right or wrong and hints on how to do it? I have
>>>> some questions that are of interest for me:
>>>>
>>>> Best regards
>>>> Stefan
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Create own set of roles
Posted by Stefan Fromm <sf...@inf.tu-dresden.de>.
I've made web.xml independent of Slide roles. In the element /web-app/security-constraint/auth-constraint/role-name I just give the value * for all roles. That means that all roles are allowed to execute the HTTP-methods on all resources. The real authorization is performed by Slide. With these settings the authentication is activated in the servlet container.
The elements /web-app/servlet/security-role-ref and /web-app/security-role/ are removed.
Stefan
Am Tue, 24 Aug 2004 11:09:02 +0200 schrieb Stefan Fromm <sf...@inf.tu-dresden.de>:
> Hello James,
>
> I found the problem. I had to change the web.xml of the war file and introduce my set of roles there. Then I could use JAAS authentication.
>
> I'm thinking of the user/roles-administration application written with the projector framework. Could it be that just creating the users and roles in Slide is not enough, because the web.xml must also be changed? Or is there a way to set security constraints in web.xml in a way that I don't need to refer to my specific set of roles, but still can have authentication only against roles from my set of roles?
>
> Stefan
>
> Am Mon, 23 Aug 2004 11:22:08 -0700 schrieb James Mason <ma...@apache.org>:
>
>> Creating your own roles should be fine. The JNDIPrincipalStore doesn't create the default roles and it works fine. Make sure if you remove the user role that you change any permissions that were assigned to that role in Domain.xml to another role that still exists.
>>
>> -James
>>
>> Stefan Fromm wrote:
>>> Hello,
>>>
>>> I want to create an own set of roles containing:
>>>
>>> - administrator
>>> - editor
>>> - author
>>>
>>> I want the "root"-user to be in role "administrator" and will have other users in the other roles. The problem is: as soon as I remove the "/roles/user" node from the Domain.xml I cannot authenticate as "root" anymore. I assume that there is a problem with the classes providing the roles like:
>>>
>>> - slideroles.basic.UserRole and slideroles.basic.UserRoleImpl
>>> - slideroles.basic.RootRole and slideroles.basic.RootRoleImpl
>>>
>>> When I want to authenticate as user which is in role "editor" it doesn't work. I think I have to provide interfaces "xxxRole" and classes "xxxRoleImpl" for my roles. Is there anyone who can give me some hints if I'm right or wrong and hints on how to do it? I have some questions that are of interest for me:
>>>
>>> Best regards
>>> Stefan
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
>
>
> ---------------------------------------------------------------------
> 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
Re: Create own set of roles
Posted by Stefan Fromm <sf...@inf.tu-dresden.de>.
Hello James,
I found the problem. I had to change the web.xml of the war file and introduce my set of roles there. Then I could use JAAS authentication.
I'm thinking of the user/roles-administration application written with the projector framework. Could it be that just creating the users and roles in Slide is not enough, because the web.xml must also be changed? Or is there a way to set security constraints in web.xml in a way that I don't need to refer to my specific set of roles, but still can have authentication only against roles from my set of roles?
Stefan
Am Mon, 23 Aug 2004 11:22:08 -0700 schrieb James Mason <ma...@apache.org>:
> Creating your own roles should be fine. The JNDIPrincipalStore doesn't create the default roles and it works fine. Make sure if you remove the user role that you change any permissions that were assigned to that role in Domain.xml to another role that still exists.
>
> -James
>
> Stefan Fromm wrote:
>> Hello,
>>
>> I want to create an own set of roles containing:
>>
>> - administrator
>> - editor
>> - author
>>
>> I want the "root"-user to be in role "administrator" and will have other users in the other roles. The problem is: as soon as I remove the "/roles/user" node from the Domain.xml I cannot authenticate as "root" anymore. I assume that there is a problem with the classes providing the roles like:
>>
>> - slideroles.basic.UserRole and slideroles.basic.UserRoleImpl
>> - slideroles.basic.RootRole and slideroles.basic.RootRoleImpl
>>
>> When I want to authenticate as user which is in role "editor" it doesn't work. I think I have to provide interfaces "xxxRole" and classes "xxxRoleImpl" for my roles. Is there anyone who can give me some hints if I'm right or wrong and hints on how to do it? I have some questions that are of interest for me:
>>
>> Best regards
>> Stefan
>>
>>
>> ---------------------------------------------------------------------
>> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Create own set of roles
Posted by James Mason <ma...@apache.org>.
Creating your own roles should be fine. The JNDIPrincipalStore doesn't
create the default roles and it works fine. Make sure if you remove the
user role that you change any permissions that were assigned to that
role in Domain.xml to another role that still exists.
-James
Stefan Fromm wrote:
> Hello,
>
> I want to create an own set of roles containing:
>
> - administrator
> - editor
> - author
>
> I want the "root"-user to be in role "administrator" and will have other
> users in the other roles. The problem is: as soon as I remove the
> "/roles/user" node from the Domain.xml I cannot authenticate as "root"
> anymore. I assume that there is a problem with the classes providing the
> roles like:
>
> - slideroles.basic.UserRole and slideroles.basic.UserRoleImpl
> - slideroles.basic.RootRole and slideroles.basic.RootRoleImpl
>
> When I want to authenticate as user which is in role "editor" it doesn't
> work. I think I have to provide interfaces "xxxRole" and classes
> "xxxRoleImpl" for my roles. Is there anyone who can give me some hints
> if I'm right or wrong and hints on how to do it? I have some questions
> that are of interest for me:
>
> Best regards
> Stefan
>
>
> ---------------------------------------------------------------------
> 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