Closed Durgaprasadala closed 7 years ago
Same setup working on some servers and never worked on couple, please help. NGINX.CONF ...
worker_processes 1; error_log logs/error.log debug; events { worker_connections 1024; }
http { ldap_server nod { url ldaps://HQDC1.xxxx.com:636/dc=xxxx,dc=com?sAMAccountName?sub?(objectClass=user); basedn "cn=users,dc=xxxx,dc=com"; binddn "xxxx@xxxx.com"; binddn_passwd "Cxxxxxxxxxxxxxx"; require valid_user; satisfy any; connections 50; } auth_ldap_cache_enabled on; auth_ldap_cache_expiration_time 10000; auth_ldap_cache_size 10000;
include mime.types;
default_type application/octet-stream;
error_log logs/error.log debug;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
auth_ldap "Forbidden";
auth_ldap_servers nod;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
Never Mind, it is fixed. It was a setting in ldap.conf did the magic. REFERRALS off
Getting timeout after hanging for couple of minutes.
2016/08/03 06:25:45 [debug] 31129#0: http_auth_ldap: ldap_result() -> rc=97, msgid=8, msgtype=97 2016/08/03 06:25:45 [debug] 31129#0: http_auth_ldap: Message with unknown ID received, ignoring.
error-github.txt