Karol Krizka wrote:
> On Friday 30 December 2005 16:01, Brad Anderson wrote:
> 
>>Karol Krizka wrote:
>>
>>>On 12/29/05, Brad Anderson <[EMAIL PROTECTED]> wrote:
>>>
>>>>Does sf.net give you access to any database?  sqlite, mysql, pg?  If so,
>>>>you could make your own table(s) with auth info and use a plugin that
>>>>I'm almost finished with.  It does away with session table and http
>>>>server auth that Trac currently uses, and does a more basic db
>>>>authentication.  I have a bit to go on it, but if you're interested,
>>>>reply.
>>>
>>>Yes, I have access to MySQL and sqlite, which I am using. I would be
>>>interested in your plugin
>>
>>You'll have it - I need to clean up a bit, though...
> 
> What is the status on it? If you didn't have time, it's ok. Just checking if 
> you haven't forgot about me. :)
> 


Here you go. it's pretty rough...

1. See the /install directory for a sample db and .sql script

2. Make changes (see below) in a global trac.ini file

3. If you're going to use the included userdir plugin to limit ticket owners,
you'll need to see #2456 on Edgewall's site, and apply that patch to Trac
itself.  If not, then disable it in global trac.ini, as well as only enable
the specific dbauth plugins, not *.

4. If you add users/groups to the table(s), you'll need to give them
permissions in trac-admin or webadmin plugin.  Note the 'all' envname will
allow the user to be in all environments, but have only one row in the table.
(There's probably some multi-project stuff in here that you weren't
specifically looking for)

Email with questions, and if you think it's good enough, I'll ask Alec Thomas
to let me put it up on Trac Hacks.

BA


----------------
global trac.ini
----------------

[components]
trac.web.auth.* = disabled
trac.userdir.* = enabled
#webadmin.* = enabled
dbauth.* = enabled

[central]
database = /home/brad/dev/python/trac-dbauth/install/dbauth.db
envroot = /var/trac/

Attachment: trac-dbauth-0.1.tar.gz
Description: GNU Zip compressed data

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

Reply via email to