setup questions

0 views
Skip to first unread message

Leho Kraav

unread,
Nov 6, 2009, 3:26:53 AM11/6/09
to Mozilla Labs Weave Server Users
hi all

im trying to set up weave server under existing apache configuration,
no separate virthost. weaveserver lives under existing LDAP auth area
defined in apache, so it would seem i should use
WEAVE_AUTH_ENGINE=none, since i dont want weaveserver to do auth,
correct?

weave sync addon fails to connect though with invalid password or
username. apache log shows only the following:

192.168.1.104 - leho [06/Nov/2009:10:16:53 +0200] "GET /weaveserver/
user/1/leho/node/weave HTTP/1.1" 401 1 "-" "Mozilla/5.0 (Macintosh; U;
Intel Mac OS X 10.5; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4"

apache2.conf for weaveserver consists of only this:

Alias /weaveserver /secure/home/httpd/htdocs/weaveserver/server/sync/
0.5/index.php

how to debug this in more detail, im not seeing any errors printed
anywhere. access https://myserver/weaveserver/user/1/leho/node/weave
just keeps constantly reauthenticating and doing nothing.

Toby Elliott

unread,
Nov 6, 2009, 12:43:06 PM11/6/09
to mozilla-labs-we...@googlegroups.com
On Nov 6, 2009, at 12:26 AM, Leho Kraav wrote:

>
> hi all
>
> im trying to set up weave server under existing apache configuration,
> no separate virthost. weaveserver lives under existing LDAP auth area
> defined in apache, so it would seem i should use
> WEAVE_AUTH_ENGINE=none, since i dont want weaveserver to do auth,
> correct?
>

Correct.


> weave sync addon fails to connect though with invalid password or
> username. apache log shows only the following:
>
> 192.168.1.104 - leho [06/Nov/2009:10:16:53 +0200] "GET /weaveserver/
> user/1/leho/node/weave HTTP/1.1" 401 1 "-" "Mozilla/5.0 (Macintosh; U;
> Intel Mac OS X 10.5; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4"
>

With only 1 byte being returned, that strongly suggests that the
username in the path is not matching the username in the basic-auth.
The log says that it starts correct, but I'm wondering if the LDAP
auth area is doing something wacky. Even though you aren't
authenticating on it, it still needs to match.

The check for this is done at line 128 of the 0.5/index.php file. Try
sticking "error_log('auth' . $auth_user . ' path: ' . $username);"
right before that, and see if they match

Regards,
Toby Elliott
Mozilla

Leho Kraav

unread,
Dec 4, 2009, 2:54:38 AM12/4/09
to Mozilla Labs Weave Server Users
1.0 server works better, so this topic can be considered irrelevant
now.
Reply all
Reply to author
Forward
0 new messages