Welcome! Log In Create A New Profile

Advanced

Nginx as reverse proxy does not authenticate to LDAP

Posted by truffle 
Nginx as reverse proxy does not authenticate to LDAP
March 20, 2024 11:41AM
Hi. I am using NGINX as reverse proxy to a webapp running on WINDOWS in IIS with ntlm AD authentication.
Normally, when you access this webapp from the browser you will see the username and password box and you login with your AD credential and you have access to the webapp.
When I put it behind the reverse proxy, the app cannot authenticate. I continuously see the same login box and keeps asking me the credentials. If I hit "cancel" I see the 401 unauthorized correctly.
There is any header or option to enable on NGINX to get this working?

server {
listen 443 ssl;

server_name mydomain;

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

location / {
proxy_pass http://192.168.52.23:5555;
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_connect_timeout 75s;
}
}


Thanks for help



Edited 1 time(s). Last edit at 03/20/2024 11:44AM by truffle.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 195
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready