Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » EGit with HTTP authentication(Is basic http authentication support?)
icon5.gif  EGit with HTTP authentication [message #493852] Wed, 28 October 2009 09:51 Go to next message
Sven-Arne Reinemo is currently offline Sven-Arne ReinemoFriend
Messages: 2
Registered: October 2009
Junior Member
I am having trouble cloning a remote repository over HTTP with authentication. I get the following error (names have been changed to protect the innocent):

http://xxx@git.xxx.xxx/xx/xx/model.git/info/refs: cannot read available refs
http://xxx@git.xxx.xxx/xx/xx/model.git/info/refs: 401 Authorization Required

Is this supposed to work in the current version of EGit? I am using EGit from http://www.jgit.org/updates (version 0.5.0.200908282229).

Sven-Arne
Re: EGit with HTTP authentication [message #493949 is a reply to message #493852] Wed, 28 October 2009 15:13 Go to previous messageGo to next message
Shawn O. Pearce is currently offline Shawn O. PearceFriend
Messages: 82
Registered: July 2009
Member
Sven-Arne Reinemo wrote:
> I am having trouble cloning a remote repository over HTTP with
> authentication. I get the following error (names have been changed to
> protect the innocent):
>
> http://xxx@git.xxx.xxx/xx/xx/model.git/info/refs: cannot read available
> refs
> http://xxx@git.xxx.xxx/xx/xx/model.git/info/refs: 401 Authorization
> Required
>
> Is this supposed to work in the current version of EGit? I am using EGit
> from http://www.jgit.org/updates (version 0.5.0.200908282229).

It should be working. Apparently, its not, so its a bug.
Re: EGit with HTTP authentication [message #500715 is a reply to message #493949] Fri, 27 November 2009 16:33 Go to previous messageGo to next message
tmarthal  is currently offline tmarthal Friend
Messages: 2
Registered: November 2009
Junior Member
To help whomever is assigned this, I am running into the same problem serving up git via http using apache.

Here is my /etc/apache2/conf.d/git.conf
Alias /git /var/git
<Directory "/var/git/">
        Options ExecCGI FollowSymLinks Indexes

        # Deny everyything here
        DAV On
        Deny from all
        AuthType Basic
        AuthName "git repository"
        AuthUserFile /var/git/htpasswd.git
        AuthGroupFile /var/git/htgroup.git
</Directory>

Alias /PROJECT-X.git /var/git/PROJECT-X.git
<Directory "/var/git/PROJECT-X.git/">
        Allow from all
        Order allow,deny
        <Limit GET>
                Require group PROJECT-X-read
        </Limit>
        <Limit GET PUT POST DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
                Require group PROJECT-X-write
        </Limit>
</Directory>


Then when I try to Import...Git Repository a new Git installation from within eclipse, I get the initial error. "Cannot lis the available branches. Reason: [url]: cannoe read available refs. 401 Authorization Required". This is by using the url in the import: http://user:password@hostname:80/Project-X.git. All of the fields on the Import Git Repository window form get filled in correctly. I can also do a git clone/push/? all from the command line to the repository.

Has a bug been filed for this? I can file one to get things rolling.

Thanks!
Re: EGit with HTTP authentication [message #500741 is a reply to message #500715] Fri, 27 November 2009 20:46 Go to previous message
Mykola Nikishov is currently offline Mykola NikishovFriend
Messages: 58
Registered: July 2009
Member
tmarthal <marthaler@gmail.com> writes:

> To help whomever is assigned this, I am running into the same problem
> serving up git via http using apache.

Thank you for a detailed description.

[...]

> Has a bug been filed for this? I can file one to get things rolling.

Yes, it's exactly this
http://code.google.com/p/egit/issues/detail?id=43 And it was confirmed
for 0.5.0 version by several users.

--
MAN-UANIC
Re: EGit with HTTP authentication [message #576057 is a reply to message #493949] Fri, 27 November 2009 16:33 Go to previous message
tmarthal  is currently offline tmarthal Friend
Messages: 2
Registered: November 2009
Junior Member
To help whomever is assigned this, I am running into the same problem serving up git via http using apache.

Here is my /etc/apache2/conf.d/git.conf

Alias /git /var/git
<Directory "/var/git/">
Options ExecCGI FollowSymLinks Indexes

# Deny everyything here
DAV On
Deny from all
AuthType Basic
AuthName "git repository"
AuthUserFile /var/git/htpasswd.git
AuthGroupFile /var/git/htgroup.git
</Directory>

Alias /PROJECT-X.git /var/git/PROJECT-X.git
<Directory "/var/git/PROJECT-X.git/">
Allow from all
Order allow,deny
<Limit GET>
Require group PROJECT-X-read
</Limit>
<Limit GET PUT POST DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require group PROJECT-X-write
</Limit>
</Directory>


Then when I try to Import...Git Repository a new Git installation from within eclipse, I get the initial error. "Cannot lis the available branches. Reason: [url]: cannoe read available refs. 401 Authorization Required". This is by using the url in the import: http://user:password@hostname:80/Project-X.git All of the fields on the Import Git Repository window form get filled in correctly. I can also do a git clone/push/? all from the command line to the repository.

Has a bug been filed for this? I can file one to get things rolling.

Thanks!
Re: EGit with HTTP authentication [message #576086 is a reply to message #576057] Fri, 27 November 2009 20:46 Go to previous message
Mykola Nikishov is currently offline Mykola NikishovFriend
Messages: 58
Registered: July 2009
Member
tmarthal <marthaler@gmail.com> writes:

> To help whomever is assigned this, I am running into the same problem
> serving up git via http using apache.

Thank you for a detailed description.

[...]

> Has a bug been filed for this? I can file one to get things rolling.

Yes, it's exactly this
http://code.google.com/p/egit/issues/detail?id=43 And it was confirmed
for 0.5.0 version by several users.

--
MAN-UANIC
Previous Topic:Create patch with EGit
Next Topic:.gitignore file
Goto Forum:
  


Current Time: Sun Nov 23 16:30:39 GMT 2014

Powered by FUDForum. Page generated in 0.02843 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software