[Trac] Starting Trac with authentication

Brennan Todd brentodd at gmail.com
Mon Oct 3 11:34:23 CDT 2005


Now that I'm back at work, I can check how I have it running here.

tracd --auth <project>,<full path to htdigest>,<domain> <path to
project_env>

The only difference between this and what you have below appears to be the
full path to the htdigest.

When I was setting things up this way, I was actually migrating from a
different setup, using apache and an htpasswd style authentication file. I
had to re-create all of my users using the htdigest program instead, and
things worked fine.

On 9/30/05, curtorkar at sancharnet.in <curtorkar at sancharnet.in> wrote:
>
>
> Hi Todd,
> I created the htdigest file. I have copied it to my trac project folder
> that is
> /trac and this is the command i fire now.
>
> tracd -a postal,trac.htpasswd,smarty.com <http://smarty.com> --port 8000
> /trac/trac_project_env/
>
>
> It starts the daemon but I still get error when i click on the login
> option of
> the web page.
>
> --Walter
>
> Quoting Brennan Todd <brentodd at gmail.com>:
>
> > Did you create the htdigest file? It's been a few weeks since I've done
> > this, but I was having the same issue as you.
> >
> > On 9/30/05, curtorkar at sancharnet.in <curtorkar at sancharnet.in> wrote:
> > >
> > > This is what i get
> > >
> > > [root at fedora ~]# tracd -p 8080 --auth postal,/trac/trac_project_env,
> > > mango.com <http://mango.com> <http://mango.com>
> > > Traceback (most recent call last):
> > > File "/usr/bin/tracd", line 328, in ?
> > > main()
> > > File "/usr/bin/tracd", line 290, in main
> > > auths[p] = DigestAuth(h, r)
> > > File "/usr/bin/tracd", line 58, in __init__
> > > self.load_htdigest(htdigest, realm)
> > > File "/usr/bin/tracd", line 65, in load_htdigest
> > > fd = open(filename, 'r')
> > > IOError: [Errno 21] Is a directory
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Quoting Norbert Unterberg <nunterberg at gmail.com>:
> > >
> > > > 2005/10/1, curtorkar at sancharnet.in <curtorkar at sancharnet.in>:
> > > >
> > > > > But when i try to use tracd --auth --port 8000 /tracenv it gives
> me
> > > the
> > > > > following output.
> > > > > IOError: [Errno 2] No such file or directory: '--auth/VERSION'
> > > >
> > > > Have a look at that page:
> > > > http://projects.edgewall.com/trac/wiki/TracStandalone
> > > >
> > > > According to the (very sparse) docs, you should try something like
> > > > tracd -p 8080 --auth
> > project1,/tmp/users.htdigest,mycompany.com <http://mycompany.com><
> http://mycompany.com>
> > > > /path/to/project1
> > > >
> > > > meaning the --auth option requires some additional arguments.
> > > >
> > > > Norbert
> > > > _______________________________________________
> > > > Trac mailing list
> > > > Trac at lists.edgewall.com
> > > > http://lists.edgewall.com/mailman/listinfo/trac
> > > >
> > >
> > >
> > >
> > >
> > > ----------------------------------------------------------------
> > > This message was sent using NWebmail, BSNL's Webmail Program
> > >
> > > _______________________________________________
> > > Trac mailing list
> > > Trac at lists.edgewall.com
> > > http://lists.edgewall.com/mailman/listinfo/trac
> > >
> >
>
>
>
>
> ----------------------------------------------------------------
> This message was sent using NWebmail, BSNL's Webmail Program
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.edgewall.com/archive/trac/attachments/20051003/65bdc325/attachment.htm


More information about the Trac mailing list