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

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

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

    Bryan

      BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
      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 3128set 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. 閱讀(1539) 評(píng)論(5)  編輯  收藏 所屬分類: Maven

    Feedback

    # re: Sonatype Nexus Auth by CNTLM[未登錄](méi) 2011-03-23 22:11 iq527
    額,這個(gè)只能在*nix系統(tǒng)下的?  回復(fù)  更多評(píng)論
      

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

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

      回復(fù)  更多評(píng)論
      

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

    # re: Sonatype Nexus Auth by CNTLM[未登錄](méi) 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 ^-^  回復(fù)  更多評(píng)論
      


    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 日韩精品成人无码专区免费| 免费观看日本污污ww网站一区| 亚洲一区二区三区四区视频| 亚洲免费闲人蜜桃| 国产在线精品一区免费香蕉| 久久久久久亚洲精品成人| 在线观看免费大黄网站| 久久国产精品免费一区二区三区 | 78成人精品电影在线播放日韩精品电影一区亚洲 | 成人免费a级毛片| 直接进入免费看黄的网站| 亚洲爆乳无码专区| 四虎成人免费影院网址| 岛国精品一区免费视频在线观看| 亚洲国产成人超福利久久精品| 免费人妻av无码专区| 在线免费观看你懂的| 四虎影视久久久免费| 亚洲五月六月丁香激情| 久久国产精品一区免费下载| 亚洲最大的成人网| 最新亚洲成av人免费看| 精品无码一级毛片免费视频观看 | 永久免费观看黄网站| 亚洲av永久无码嘿嘿嘿| 国产亚洲美女精品久久久久狼| 最近最好的中文字幕2019免费| a视频免费在线观看| 狼人大香伊蕉国产WWW亚洲| 亚洲视频一区在线| 国产成人麻豆亚洲综合无码精品| 无人在线直播免费观看| 久久免费国产精品一区二区| 国产亚洲精品国产福利在线观看| 亚洲免费在线视频播放| 亚洲成AV人片在线观看无| 亚洲国产日韩成人综合天堂| 手机在线毛片免费播放| 精品久久8x国产免费观看| a色毛片免费视频| 精品国产污污免费网站入口在线 |