<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Bryan

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      37 Posts :: 3 Stories :: 24 Comments :: 0 Trackbacks
     

    Recently,our project has been undergoing process changes and some integration tools has been introduced, for example Hudson,Sonatype Nexus,Maven.According to the company's policy,we have to access the internet via the proxy settings.But the current Sonatype Nexus is using the httpclient 3 to do auth which only sopport NTLMv1.

    I have tried the url NTLM Proxy Authentication and Jakarta HttpClient but still the application can  not access the internet though proxy.After googling, I found that the Httpclient 4 supports NTLMv2 out of the box. You can find the details by the following url: http://hc.apache.org/httpcomponents-client-ga/ntlm.html.  Meanwhile,It seems that someone suggests using CNTLM and after some configuration and find It really works for Nexus.

    First,get the latest version of CNTLM and install it according to the guide. you can configure it as below.
     
    1. As I configure it at home,you can get a proxy here and add it in cntlm.ini like this: Proxy  219.159.234.179:8080,you can leave the username pass and domain there and donot change anything if you donot have one.

    2. start the cntlm service mannually or change the dir to the cntlm installation directory and run the command

    ntlm -v to see whether  cntlm  works fine or not.

    3. configure the proxy in the nexus,suppose the Listen Port defaut 3128,set the Proxy Host 127.0.0.1 and Port 3128,if you have username and pass and domain,please set it in cntlm.ini and need not configure it in the nexus.






     

     

    4, Nexus can now get access to the internet via proxy,you can browse Views/Repositories --> Maven Central -> Browse Remote to see whether It works or not.


    5. the log of nexus looks like below, It's for your ref.

    2010-12-17 19:12:42 INFO  [080-Processor21] - o.s.n.c.a.DefaultNe~          - Applying Nexus Configuration...
    2010-12-17 19:12:42 INFO  [080-Processor21] - o.s.n.c.v.DefaultAp~          - Nexus configuration validated succesfully.
    2010-12-17 19:13:02 INFO  [ool-2-thread-15] - o.s.n.p.s.r.c.Commo~          - Remote storage settings change detected for ProxyRepository ID="central" ("Maven Central"), updating HttpClient...
    2010-12-17 19:13:02 INFO  [ool-2-thread-15] - o.s.n.p.s.r.c.Commo~          - ... proxy setup with host "127.0.0.1"
    2010-12-17 19:13:02 INFO  [080-Processor21] - o.s.n.p.s.r.c.HttpC~          - ... proxy setup with host "127.0.0.1"

    6.Another tool which can help you get access to internet via proxy is ntlmaps.

    Ref
    NTLM Proxy Authentication and Jakarta HttpClient
    http://www.theresearchkitchen.com/blog/archives/23

    NTLM support in HttpClient
    http://hc.apache.org/httpcomponents-client-ga/ntlm.html

    Cntlm Authentication Proxy
    http://cntlm.sourceforge.net/

    NTLM Authorization Proxy Server
    http://ntlmaps.sourceforge.net/
    http://linux.chinaunix.net/bbs/viewthread.php?tid=227822

    posted on 2010-12-17 21:43 Life is no respector of any genius. 閱讀(1528) 評論(5)  編輯  收藏 所屬分類: Maven

    Feedback

    # re: Sonatype Nexus Auth by CNTLM[未登錄] 2011-03-23 22:11 iq527
    額,這個只能在*nix系統下的?  回復  更多評論
      

    # re: Sonatype Nexus Auth by CNTLM 2011-03-24 18:46 Life is no respector of any genius.
    @iq527
    都可以的.  回復  更多評論
      

    # re: Sonatype Nexus Auth by CNTLM[未登錄] 2011-03-24 20:52 iq527
    安裝好以后
    cntlm.exe -M http://www.baidu.com
    全部都Credentials rejected - -|

      回復  更多評論
      

    # re: Sonatype Nexus Auth by CNTLM 2011-03-26 11:30 Life is no respector of any genius.
    @iq527
    你在cntlm.ini設置好一個http代理后,然后手動啟動服務(ntlm -v),或者運行services.msc去啟動,然后設置自己的瀏覽器代理為127.0.0.1:3128,就可以上網了.  回復  更多評論
      

    # re: Sonatype Nexus Auth by CNTLM[未登錄] 2012-01-13 17:41 iq527
    https://issues.sonatype.org/browse/NEXUS-1312

    The problem has been fixed since nexus 1.9.1-RC1, 1.9.1 ^-^  回復  更多評論
      


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 亚洲日韩AV一区二区三区中文 | 无码日韩精品一区二区免费暖暖| 免费无码黄网站在线观看| 国产亚洲一区二区三区在线| 免费无码AV一区二区| 日本一道一区二区免费看 | v片免费在线观看| 亚洲av无码成人精品区| 成人婷婷网色偷偷亚洲男人的天堂| 无人在线观看免费高清视频| 亚洲婷婷综合色高清在线| xx视频在线永久免费观看| 亚洲色偷偷综合亚洲AV伊人| 风间由美在线亚洲一区| 免费h黄肉动漫在线观看| 免费一级毛suv好看的国产网站| 免费午夜爽爽爽WWW视频十八禁| 四虎影视久久久免费观看| 国产亚洲?V无码?V男人的天堂| 亚洲一区二区三区免费| 亚洲韩国精品无码一区二区三区| 日韩电影免费在线观看网站| 亚洲VA中文字幕无码毛片| 免费黄色福利视频| 亚洲男人的天堂网站| 婷婷亚洲天堂影院| 中国videos性高清免费| 亚洲欧洲日韩不卡| 国产成人A在线观看视频免费| 亚洲精品无码少妇30P| 伊人久久综在合线亚洲91| 日韩插啊免费视频在线观看 | 亚洲av福利无码无一区二区| 午夜国产精品免费观看| 亚洲av午夜国产精品无码中文字| 久久久久亚洲AV成人网人人软件| 最近中文字幕mv免费高清视频8 | 精品亚洲AV无码一区二区三区| A在线观看免费网站大全| 看Aⅴ免费毛片手机播放| 久久久无码精品亚洲日韩蜜桃 |