Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

HTTPAuthentication login

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


quickmike at gmail

Oct 21, 2007, 4:36 AM

Post #1 of 7 (313 views)
Permalink
HTTPAuthentication login

Hello all.

I set up trac 0.10.4 on opensuse with YAST, using tracd with SQLite.
So far all seems to work. The only problem I have right now is with
the login. When I enter the login data, the password dialog closes
shortly, but opens again.

I set up authentication as descriped on the page wiki/TracStandalone
in the tracGuide.

tracd is started with:
tracd -d --port 8090 --auth=*,/absolutepathto/users.htdigest, -e
/absolutepathto/trac

htdigest file is created with:
htpasswd2 -c users.htdigest username

After restarting tracd, when I try to login (using the login-link on
the page), the password dialog is shown ok. After pushing the ok
button, the dialog closes shortly but opens up again.

Looking at the log (set to debug), there is no login related info
contained. tracd has rw access to the user.htdigest file.

Any idea what the problem might be? I know it is something simple, but
I just don't find it.


Thanks,
Michael Vogt

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


manu.blot at gmail

Oct 21, 2007, 5:30 AM

Post #2 of 7 (310 views)
Permalink
Re: HTTPAuthentication login [In reply to]

> tracd -d --port 8090 --auth=*,/absolutepathto/users.htdigest, -e
> /absolutepathto/trac

> Any idea what the problem might be? I know it is something simple, but
> I just don't find it.

Your --auth parameter is missing the realm

HTH,
Manu

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


manu.blot at gmail

Oct 21, 2007, 5:33 AM

Post #3 of 7 (310 views)
Permalink
Re: HTTPAuthentication login [In reply to]

Moreover:

* htpasswd creates basic authentication files
* htdigest creates digest authentication files

You're using a digest authentication scheme (--auth) with a basic
authentication file (htpasswd): it cannot work.

Either
* select basic authentication for use with your htpasswd file, or
* select digest-based authentication and create a digest file.

Cheers,
Manu

On 10/21/07, Emmanuel Blot <manu.blot [at] gmail> wrote:
> > tracd -d --port 8090 --auth=*,/absolutepathto/users.htdigest, -e
> > /absolutepathto/trac
>
> > Any idea what the problem might be? I know it is something simple, but
> > I just don't find it.
>
> Your --auth parameter is missing the realm
>
> HTH,
> Manu
>


--
Manu

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


quickmike at gmail

Oct 21, 2007, 6:41 AM

Post #4 of 7 (308 views)
Permalink
Re: HTTPAuthentication login [In reply to]

Hi Manu.

Thanks for your answer,

>
> > tracd -d --port 8090 --auth=*,/absolutepathto/users.htdigest, -e
> > /absolutepathto/trac
>
> > Any idea what the problem might be? I know it is something simple, but
> > I just don't find it.
>
> Your --auth parameter is missing the realm
>
When I remember correctly, the * in the auth-value should match all
projects. Is this wrong?


Thanks,
Michael Vogt

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


manu.blot at gmail

Oct 21, 2007, 6:46 AM

Post #5 of 7 (308 views)
Permalink
Re: HTTPAuthentication login [In reply to]

> When I remember correctly, the * in the auth-value should match all
> projects. Is this wrong?

No, this is correct, however:

*,/absolutepathto/users.htdigest,

is missing the realm:

project,auth_file,realm

Cheers,
Manu

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


quickmike at gmail

Oct 21, 2007, 6:47 AM

Post #6 of 7 (311 views)
Permalink
Re: HTTPAuthentication login [In reply to]

> No, this is correct, however:
>
> *,/absolutepathto/users.htdigest,
>
> is missing the realm:
>
> project,auth_file,realm
>
Yes, I have just realized that I have missread your answer. Sorry.


Cheers,
Michael Vogt

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


quickmike at gmail

Oct 21, 2007, 6:51 AM

Post #7 of 7 (307 views)
Permalink
Re: HTTPAuthentication login [In reply to]

> > tracd -d --port 8090 --auth=*,/absolutepathto/users.htdigest, -e
> > /absolutepathto/trac
>
> > Any idea what the problem might be? I know it is something simple, but
> > I just don't find it.
>
> Your --auth parameter is missing the realm
>
Added the realm and it worked immediately.

Thanks a lot,
Michael Vogt

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

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.