You still need to add permissions to the groups that you expect your
user to belong to, regardless of how group membership is determined.
So if you an 'admin' group for example, WIKI_VIEW (or any other
permissions like TRAC_ADMIN) need to be assigned to that group in
Trac.
Yes, I carefully assigned all the important permissions (Actions) to
my trac groups. So,
trac-admin /var/trac/repositories/neukolln permission list
returns :
svn_admins TRAC_ADMIN
svn_devel DOWNLOADS_VIEW
svn_devel TICKET_CREATE
svn_devel svn_neukolln_guests
...
svn_guests TAGS_VIEW
svn_guests TICKET_VIEW
svn_guests TIMELINE_VIEW
svn_guests WIKI_VIEW
The strange thing is, it works the first time I log in on a trac project
after
apache restart, but not later on, if I try to log in a second project.. as
if something
gets confused in permission caching, or so.
I doubt it has anything to do with the PermissionCache. It only
cache's a user's permissions in the context of a request. How exactly
is your Trac system set up and how is the plugin installed?
Also, one small I thing I noticed which should have nothing to do with
your actual problem, is that you have an unnecessary "from trac.config
import *". There generally shouldn't be any reason to import * from
that module, and you're not using anything from it anyways.
Thats true ! I simply reused another plugin, so this line remained,
but I will remove it, soon.
I thought, that maybe trac/apache stores a basic-realem/ip/something
that is persistent for whole apache online time. Is trac authentication
realy session oriented ? if it is , I realy would be supprised after what
I have seen here.. I'm realy clueless :(
my Plugin is installed in every trac project "plugin" subfolder as py egg.
The plugin can be trac-browsed at :
http://trac-hacks.org/browser/tracsysgroupsplugin/0.11/trunk/
My apache conf seems to be alright, here is a snip
<VirtualHost 192.168.1.254:443>
ServerAdmin webm...@celluloid-vfx.com
ServerName svn.testdomain.inc
ServerAlias svn
SSLEngine on
#DocumentRoot /var/www/trac
<Location />
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonInterpreter main
PythonOption TracEnv ""
PythonOption PYTHON_EGG_CACHE /tmp
PythonOption TracEnvParentDir /var/trac/repositories
PythonOption TracUriRoot /
</Location>
<Location "/neukolln">
AuthPAM_Enabled On
AuthType Basic
AuthPAM_FallThrough off
AuthGROUP_Enabled on
AuthName "Celluloid neukolln web-trac login:"
AuthBasicAuthoritative Off
Require group svn_admins svn_neukolln_devel svn_neukolln_guests
require valid-user
AuthUserFile /dev/null
</Location>
<Location "/ruhrpott">
AuthPAM_Enabled On
AuthType Basic
AuthPAM_FallThrough off
AuthGROUP_Enabled on
AuthName "Celluloid ruhrpott web-trac login:"
AuthBasicAuthoritative Off
Require group svn_admins svn_ruhrpott_devel svn_ruhrpott_guests
require valid-user
AuthUserFile /dev/null
</Location>
</VirtualHost>
Do you have any other plugins installed? As far as I can tell this
plugin should work, at least by itself.