git客户端使用GSSAPI进行NTLM代理身份验证 [英] git client using GSSAPI for NTLM proxy authentication

查看:240
本文介绍了git客户端使用GSSAPI进行NTLM代理身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



很明显,* curl(通过libcurl)现在包括GSSAPI支持NTLM代理身份验证,而不是必须手动泄露用户名和密码。



由于git客户端使用libcurl,我认为这可以通过git访问。



如何使用git客户端访问?



(*)请参阅 NTLM proxy without password?,for a discussion of ntlm proxy authentication without providing the password。



另请参阅使用Libcurl来验证ntlm代理而不传递

解决方案

最后我得到RTFS,总结回答:



在msysgit 1.9版本.5(早期版本未经测试),git


  1. 使用http和https

  2. 没有显式设置身份验证类型的方式(例如ntlm)

  3. 没有单独的方式设置用户名和密码, url

  4. 使用空的用户名和密码工作,因此如果您执行以下操作,它将使用默认NTLM凭据



    git config --global http.proxy https://:@proxyhost:proxyport /


请注意,存在定界用户名和密码的 @ 字段为空。并且似乎接受使用https连接到代理。


Like many, Im trying to access github.com from behind a corporate proxy.

Apparently* curl (via libcurl) now includes GSSAPI support for NTLM proxy authentication without having to manually divulge username and password.

Since git client uses libcurl, I assume this is accessible via git.

How do I access this using git client ?

(*) See NTLM proxy without password?, for a discussion of ntlm proxy authentication without providing the password.

See also Using Libcurl to authenticate ntlm proxy without pass.

解决方案

In the end I had to RTFS, the answer in summary:

As at msysgit version 1.9.5 (earlier versions are untested), git

  1. uses the proxy configuration for [http] section for both http and https
  2. does NOT have an explicit way to set authentication type (such as ntlm)
  3. does NOT have a separate way to set username and password other than embedded in the proxy url
  4. using an empty username and password works, so it will use default NTLM credentials if you do the following

    git config --global http.proxy https://:@proxyhost:proxyport/

Note that the : and @ that delimit the username and password are present, but the fields are empty. And it seems to accept using https to connect to proxy.

这篇关于git客户端使用GSSAPI进行NTLM代理身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆