Re: [Trac] How to permit only logged in users to make changes in trac

2006-08-30 Thread Jani Tiainen

Rainer Sokoll kirjoitti:

On Wed, Aug 30, 2006 at 12:38:21PM +0300, Jani Tiainen wrote:


This is apache's task (assumed you use apache).
For instance, I use mod_auth_ldap for authentication and have a "require
valid-user" in the appropriate location container in httpd.conf.
Actually it isn't directly resposibility of task of external 
authentication (like apache). (Depending on case)


What here needs to be done is revoke modify/add rights from "anonymous" 
user in Trac (by using tracadmin). Then anonymous is still able to 
browse but not change (I'm using this kind of an approach in our company 
server, anyone can browse, but only logged in can change)


Yes, but the term "anonymous" is a little bit confusing. With me
(apache forces everyone to authenticate), "anonymous" means "default".
If a user is autheticated for example as jtiainen, and there are no
special rights defined for jtiainen within trac, then he will granted
the permissions for anonymous - even he is jtiainen. In fact, I have no
anonymous users.


Autheticated users (logged in) will get permissions from "authenticated" 
 virtual group, which is inherits "anonymous" (not logged in) permissions.


So my setup contains read-only rights for "anonymous" user, so you can 
browse wiki, tickets and source without logging in.


When anyone logs in he/she gest special permissions to manage wiki and 
tickets.


Then there is even further detailed permissions for Trac admins.

So in your case you have always "authenticated" users, but since you 
don't need special rights for them, you have adjusted "anonymous" user 
rights since all logged in users will inherit them


More in-depth explanation about permissions can be found at: 



--

Jani Tiainen
___
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac


Re: [Trac] How to permit only logged in users to make changes in trac

2006-08-30 Thread Rainer Sokoll
On Wed, Aug 30, 2006 at 12:38:21PM +0300, Jani Tiainen wrote:

> >This is apache's task (assumed you use apache).
> >For instance, I use mod_auth_ldap for authentication and have a "require
> >valid-user" in the appropriate location container in httpd.conf.
> 
> Actually it isn't directly resposibility of task of external 
> authentication (like apache). (Depending on case)
> 
> What here needs to be done is revoke modify/add rights from "anonymous" 
> user in Trac (by using tracadmin). Then anonymous is still able to 
> browse but not change (I'm using this kind of an approach in our company 
> server, anyone can browse, but only logged in can change)

Yes, but the term "anonymous" is a little bit confusing. With me
(apache forces everyone to authenticate), "anonymous" means "default".
If a user is autheticated for example as jtiainen, and there are no
special rights defined for jtiainen within trac, then he will granted
the permissions for anonymous - even he is jtiainen. In fact, I have no
anonymous users.

Rainer
___
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac


Re: [Trac] How to permit only logged in users to make changes in trac

2006-08-30 Thread Jani Tiainen

Rainer Sokoll kirjoitti:

On Wed, Aug 30, 2006 at 04:19:17AM -0400, Raz Goren wrote:


Currently an anonymous user or a logged in user can change things in our
trac system or open tickets .

How do I prevent users that are not logged in from adding or changing
pages .


This is apache's task (assumed you use apache).
For instance, I use mod_auth_ldap for authentication and have a "require
valid-user" in the appropriate location container in httpd.conf.


Actually it isn't directly resposibility of task of external 
authentication (like apache). (Depending on case)


What here needs to be done is revoke modify/add rights from "anonymous" 
user in Trac (by using tracadmin). Then anonymous is still able to 
browse but not change (I'm using this kind of an approach in our company 
server, anyone can browse, but only logged in can change)


If you need authentication always (anonymous can't even browse) easiest 
way is to setup authentication required for whole Trac site by using 
HTTP-server in question.


--

Jani Tiainen

___
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac


Re: [Trac] How to permit only logged in users to make changes in trac

2006-08-30 Thread Peter Fischer

Raz Goren wrote:

Hi All

 

Currently an anonymous user or a logged in user can change things in our 
trac system or open tickets .


How do I prevent users that are not logged in from adding or changing 
pages .


Use this fine tool to first add permission to wanted users/groups


apache ~% trac-admin help | grep permission
permission list   -- List permission rules
permission add   [action] [...] -- Add a new permission rule
permission remove   [action] [...]  -- Remove permission rule



Then remove default permissions for "anonymous" (or was it "somebody"?).

Peter
___
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac


Re: [Trac] How to permit only logged in users to make changes in trac

2006-08-30 Thread Rob Wilkerson

On 8/30/06, Raz Goren <[EMAIL PROTECTED]> wrote:


Hi All

Currently an anonymous user or a logged in user can change things in our
trac system or open tickets .

How do I prevent users that are not logged in from adding or changing pages
.

The answer to both questions is to use trac-admin to remove one or
more of the privileges granted by default to the anonymous
pseudo-user.  For example:

trac-admin /path/to/trac/env permission remove anonymous WIKI_CREATE WIKI_MODIFY

That will prevent anonymous users from creating and modifying wiki
pages.  To see all permissions currently granted, use:

trac-admin /path/to/trac/env permission list

--

Rob Wilkerson
___
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac


Re: [Trac] How to permit only logged in users to make changes in trac

2006-08-30 Thread Rainer Sokoll
On Wed, Aug 30, 2006 at 04:19:17AM -0400, Raz Goren wrote:

> Currently an anonymous user or a logged in user can change things in our
> trac system or open tickets .
> 
> How do I prevent users that are not logged in from adding or changing
> pages .

This is apache's task (assumed you use apache).
For instance, I use mod_auth_ldap for authentication and have a "require
valid-user" in the appropriate location container in httpd.conf.

Rainer
___
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac