具有radius认证和ldap组授权的nginx

2024-10-01 17:40:19 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图将nginx auth从ldap转移到radius身份验证,使用https://github.com/qudreams/nginx-http-radius-module可以很好地工作。在

location / {
    auth_radius_server "radius_server1" "PAP";
    auth_radius "Restricted";
    # Static content no auth
    location ~ ^/(css|app|img|vendor|font|config.js|favicon.ico) {
              allow all;
    }
}

但是我想要一种方法来检查远程用户ldap组并允许或拒绝他/她的访问。尝试使用http://nginx.org/en/docs/http/ngx_http_auth_request_module.html作为代理,并使用proxy_pass将请求发送到uwsgi python服务器它从不获取请求,而使用uwsgi_pass则获取错误

"upstream prematurely closed connection while reading response header from upstream, client"

还有别的办法吗?在

^{pr2}$

Tags: httpsgithubcomauth身份验证httpnginxlocation

热门问题