On 13 juin, 20:54, Noah Kantrowitz <[EMAIL PROTECTED]> wrote:
> Stephen Moretti wrote:
> > On 13/06/07, Stephen Moretti <[EMAIL PROTECTED]> wrote:
> >> On 13/06/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >>> Is it possible to manage Users accounts from Trac Admin for both Trac & 
> >>> Svn in
> >>> the same time ?
> >>> example: i want to define users who can read the wiki and checkout the 
> >>> source
> >>> code but not commit.
>
> >>> (For many reasons, I use apache in front of both trac & svn)
>
> >> Yep.  I have the same set up.  I didn't want to be managing two lots
> >> of user permissions, so I hooked Trac into the htpasswd file for svn.
>
> >> To do this I used the TracAccountManager plugin on trac-hacks :
> >>http://trac-hacks.org/wiki/AccountManagerPlugin
>
> >> It was pretty easy to set up and get running.
>
> > Whoops....
>
> > I meant to say. I have an access control list for svn that ensures
> > that only specific user have access to rw svn and, in my case, all
> > other users have no direct access to the subversion repository.
>
> > The account manager plugin means that users can register through trac,
> > I can give them access to the trac elements via the trac web admin
> > and, if necessary, manually add them to the acl for svn.
>
> You can do this with mod_auth_acctmgr.
>
> --Noah
>
>  signature.asc
> 1KTélécharger- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -

Hi

I saw the web page of this plugin (http://www.trac-hacks.org/wiki/
ModAuthAcctmgrScript) and i install it
but i dont exactly know what to do. My settings are :

for trac.ini :
----------------

[components]
mod_auth_acctmgr.* = enabled

for httpd.conf :
--------------------

Listen 8000
<VirtualHost *:8000>
    ServerAdmin user(at)xxx.fr

    DocumentRoot  /var/trac/project1
    <Location />
        SetHandler mod_python
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /var/trac/project1
        PythonOption TracUriRoot /
        PythonOption TracPerm SVN_READ
        PythonAuthenHandler mod_auth_acctmgr
        <LimitExcept GET PROPFIND OPTIONS REPORT>
               PythonOption TracPerm SVN_WRITE
        </LimitExcept>
        PythonPath "sys.path + ['/var/trac/project1']"

        AuthType Basic
        AuthName "Project1 Subversion repository"
        AuthUserFile /var/svn/project1/conf/import.passwd
        Require valid-user

        SetEnv PYTHON_EGG_CACHE /var/cache/project1
    </Location>

    <Location /svn>
        DAV svn
        SVNPath /var/svn/project1
    </Location>

    ErrorLog  /var/logs/error.project1.cea.fr.log
    CustomLog /var/log/access.project1.cea.fr.log combined

</VirtualHost>

I have created un user with tracAccountMgr with persmissions:
SVN_READ, WIKI_VIEW, TICKET_VIEW
but i can post modifications from this user. What i want is  this user
can only "checkout" the repository

chris









--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to