kvspb / nginx-auth-ldap

LDAP authentication module for nginx
BSD 2-Clause "Simplified" License
739 stars 253 forks source link

http_auth_ldap: No user attribute specified in auth_ldap_url #215

Open manas86 opened 5 years ago

manas86 commented 5 years ago

hi All,

After installing this lib, Im having below issue

2018/12/24 00:17:10 [emerg] 27#0: http_auth_ldap: No user attribute specified in auth_ldap_url. in /etc/nginx/nginx.conf:88
nginx: [emerg] http_auth_ldap: No user attribute specified in auth_ldap_url. in /etc/nginx/nginx.conf:88

I have centos and alreday installed openladp-devel . Is there any specific module i should install? Nginx -Vshows

nginx version: nginx/1.14.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) 
built with OpenSSL 1.0.2k-fips  26 Jan 2017
TLS SNI support enabled
configure arguments: --modules-path=/usr/lib/nginx/modules --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --user=nginx --group=nginx --with-stream --with-http_ssl_module --with-http_v2_module --with-debug --add-dynamic-module=/tmp

Any pointer to resolve this issue would be appreciated?

sukai127 commented 5 years ago

It's works for me. change mainline/alpine/conf.d.example/000-ldap.conf.template:7 from:

url ${NGINX_AUTH_LDAP_URL};

to:

auth_ldap_url ${NGINX_AUTH_LDAP_URL};
zn-luo commented 2 years ago

It's work for weseek/nginx-auth-ldap:1.15.12-alpine