【问题标题】:NTLM Proxy Translator to Basic Auth or OauthNTLM 代理转换器到基本身份验证或 Oauth
【发布时间】:2014-06-17 13:22:58
【问题描述】:

我有一些服务(比如 S1 和 S2),我想将它们与使用 NTLM 身份验证的第三方服务(比如 S3)连接起来。我的问题是我可以使用 Basic Auth 或 Oauth。我想知道是否有可以进行此身份验证转换的代理(从 NTLM 到 BasicAuth)。

|s1|<--|
       |--BasicAuth--> |Proxy| <--NTLM--> |s3|
|s2|<--| 

目前,我正在使用 Curl (--ntlm) 来实现这一点,但我想按照描述进行更改。

S1 和 S2 在 Debian 主机中运行。

干杯!

【问题讨论】:

    标签: oauth proxy basic-authentication ntlm


    【解决方案1】:

    我设法通过安装Cntlm 来解决这个问题。这是一个代理,与我描述的差不多。

    我配置了this blog post中提到的代理

    主要区别在于我只设置了Domain,并在PasswordUser 参数中进行了注释:

    Domain      mySoapNTLMdomain
    # Username
    # Password  
    # NOTE: Use plaintext password only at your own risk
    # Use hashes instead. You can use a "cntlm -M" and "cntlm -H"
    # command sequence to get the right config for your environment.
    # See cntlm man page
    # Example secure config shown below.
    # PassLM
    # PassNT
    # PassNTLMv2
    

    所以我可以通过使用基本身份验证来获得授权。例如

    curl http://soap.mydomain:1234/my/path --proxy http://127.0.0.1:3128 --user soapuser:andpass --proxy-user soapuser:andpass
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-01-02
      • 1970-01-01
      • 2021-05-09
      • 1970-01-01
      • 1970-01-01
      • 2021-10-10
      • 2018-07-19
      相关资源
      最近更新 更多