nginx reverse proxy with Windows authentication that uses NTLM

前端 未结 5 2030
广开言路
广开言路 2020-12-29 10:16

Anyone knows if is possible to do reverse proxy with Windows authentication that uses NTLM? I cant find any example on this. What should be the values of more_set_headers fi

5条回答
  •  梦毁少年i
    2020-12-29 10:29

    According to nginx documentation:

    Allows proxying requests with NTLM Authentication. The upstream connection is bound to the client connection once the client sends a request with the “Authorization” header field value starting with “Negotiate” or “NTLM”. Further client requests will be proxied through the same upstream connection, keeping the authentication context.

    upstream http_backend {
        server 127.0.0.1:8080;
    
        ntlm;
    }
    

    but the ntlm; option is available only with a commercial subscription (Nginx Plus)

    You can use this module for non-production environments.

    gabihodoroaga/nginx-ntlm-module

    The module is not complete but it was enough for me to solve my issues.

提交回复
热议问题