List Info

Thread: HTTPAuthentication login




HTTPAuthentication login
user name
2007-10-21 06:36:54
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-usersgooglegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: HTTPAuthentication login
user name
2007-10-21 07:30:00
> 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-usersgooglegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: HTTPAuthentication login
user name
2007-10-21 07:33:31
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.blotgmail.com> 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-usersgooglegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: HTTPAuthentication login
user name
2007-10-21 08:41:06
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-usersgooglegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: HTTPAuthentication login
user name
2007-10-21 08:46:22
> 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-usersgooglegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: HTTPAuthentication login
user name
2007-10-21 08:47:42
> 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-usersgooglegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: HTTPAuthentication login
user name
2007-10-21 08:51:23
> > 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-usersgooglegroups.com
To unsubscribe from this group, send email to
trac-users-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )