4

I download and install Bonobo Git Server (6.0.0.532). I have followed IIS authentication settings:

enter image description here

I create the repository via rescan directory.

I create the user (login: qqq, pass: qqq)

When I try to clone repository via TortoiseGit I see the followed credential window:

enter image description here

I put the credential of the created user [qqq, qqq]. And on this step I received the authentication error:

enter image description here

So the question: why it happens and how to fix it?

PS: the anonymous access (if set up it) works fine.

UPD1

I used commant line and set GIT_CURL_VERBOSE=1 for details, but still did not get the trouble. Command line output: enter image description here

Schmetti
  • 113
  • 14
AeroSun
  • 2,401
  • 2
  • 23
  • 46

3 Answers3

2

People often solve these problems by using command line Git, and running set GIT_CURL_VERBOSE=1 before they do the Git clone.

This may well give you a clue what's going on. According to your screenshot it took over 30 seconds for the git clone to fail, which doesn't sound like an simple authentication failure.

Will Dean
  • 39,055
  • 11
  • 90
  • 118
0

Instead of credentials qqq:qqq try admin:admin and read/choose one of

qräbnö
  • 2,722
  • 27
  • 40
  • 1
    The best case for me is - https://bonobogitserver.com/ef-membership/. But it is default behaviour, the line "" already turn on. Do I need to create new user somewhere else than bonobo git server html page? – AeroSun Apr 08 '17 at 19:11
0

Does your password have a percent sign (%) in it?

I was having the same problem, so I downloaded the source code and traced through it.

In the GitAuthorizeAttribute.IsUserAuthorized() method, the username and password are retrieved from the decoded auth header by using Uri.UnescapeDataString(). I had a %42 in my password that was being converted to a B before attempting the authentication, which is what caused it to fail. I changed my password so that it no longer uses a % sign and it works fine.

Note, that this is only an issue when authenticating with Git. The percent sign in the password works perfectly fine just logging into the BonoboGitServer web application itself.

I opened an issue on BonoboGitServer's GitHub page. https://github.com/jakubgarfield/Bonobo-Git-Server/issues/704

Harris Spivack
  • 275
  • 1
  • 6