Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git clone and push working with wrong passwords #17

Closed
cesmarvin opened this issue May 16, 2011 · 11 comments
Closed

Git clone and push working with wrong passwords #17

cesmarvin opened this issue May 16, 2011 · 11 comments
Labels
bug Something isn't working

Comments

@cesmarvin
Copy link
Contributor

Original report by Anonymous.


I created a GIT repository with SCM Manager and this is not set to public

in case I'm using

$ git push http://user@host.com/name/.git

I'm gettind asked foer a password but whatever I typed in I can update the remote repository

same with http://user:password@host.com/name/.git

and a wrong password here.

@cesmarvin
Copy link
Contributor Author

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


I could not reproduce this issue. When i try to push with the wrong password i became the following output:

git push http://sdorra:test@localhost:8080/scm/git/git-test master

fatal: Authentication failed

Could you please post all your steps (clone, add, commit and push)?

@cesmarvin
Copy link
Contributor Author

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


The repository url in your example is wrong it should be http://user@host.com/scm/git/repositoryname and the push command contains no branch. The command schould be something like that:

git push http://user@host.com/scm/git/repositoryname master

Is the command above just an example or is this the command you used for the push?

@cesmarvin
Copy link
Contributor Author

Original comment by Anonymous.


I was using localhost:port and I got the Authentication failed message but in case I use hostname:port the password is not checked

@cesmarvin
Copy link
Contributor Author

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


When i try to push to hostname:port i get same message:

git push http://sdorra:test@hostname:8080/scm/git/git-test master

fatal: Authentication failed

Could you please post the complete command line log for the clone, add and push commands?

@cesmarvin
Copy link
Contributor Author

Original comment by Anonymous.


Maybe this is an issue with LDAP becaus in case I use the local stored 'scmadmin' Authentication is working correct. Only with LDAP users this issue exists.

@cesmarvin
Copy link
Contributor Author

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Ok, it is a bug in the LDAP-Plugin.

@cesmarvin
Copy link
Contributor Author

Original comment by Anonymous.


Looks like that :-(

Any fix available soon?

@cesmarvin
Copy link
Contributor Author

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Could you please uninstall the scm-auth-ldap-plugin and install the version 1.3 of the scm-auth-ldap-plugin?

@cesmarvin
Copy link
Contributor Author

Original comment by Anonymous.


yes, will try this....

@cesmarvin
Copy link
Contributor Author

Original comment by Anonymous.


Okay, great. I'm now not able to push code with the wrong password using LDAP.

Problem FIXED!

Thanks.

@cesmarvin
Copy link
Contributor Author

Original comment by Sebastian Sdorra (Bitbucket: sdorra, GitHub: sdorra).


Issue #21 was marked as a duplicate of this issue.

@cesmarvin cesmarvin added major bug Something isn't working labels Mar 9, 2020
@cesmarvin cesmarvin mentioned this issue Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant