http_auth_ldap: No user attribute specified in auth_ldap_url
manas86 opened this issue · 2 comments
manas86 commented
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 -V
shows
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
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
It's work for weseek/nginx-auth-ldap:1.15.12-alpine