Welcome! Log In Create A New Profile

Advanced

Configure NGINX on windows to use LDAP

April 24, 2016 10:30PM
Hello All

I would like to know what configuration is needed to configure NGINX on windows to use LDAP.

My nginx.conf looks like below but am not able to start the nginx service. I have added the 'ldap_server ProdLDAP ' section under http and 2 other paramaters named 'auth_ldap_xxx' under server sectiob. By removing these ldap parametes, nginx service starts without any issues.


worker_processes 1;
pid logs/nginx.pid;
events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

log_format timing '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent $request_length "$ssl_protocol" "$ssl_cipher" '
'$request_time $pipe $gzip_ratio "$upstream_cache_status" "$upstream_addr" $upstream_status $upstream_response_time $connection';



sendfile on;



keepalive_timeout 65;

ldap_server ProdLDAP {
url ldaps://ldapprod.company.com:636/ou=people,o=company?cn=esb-dev?sub?(objectClass=user);
binddn "svcaccount";
binddn_passwd password;
group_attribute uniquemember;
group_attribute_is_dn on;
require valid_user;
}


server {
listen 51000;
server_name localhost;

auth_ldap "Forbidden";
auth_ldap_servers ProdLDAP;

location / {
root html;
index index.html index.htm;
}

location /ProdLogs {
autoindex on;
default_type text/plain;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

}
}
Subject Author Posted

Configure NGINX on windows to use LDAP

v_shirin April 24, 2016 10:30PM

Re: Configure NGINX on windows to use LDAP

Aleksandar Lazic April 25, 2016 04:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
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