kvspb / nginx-auth-ldap

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

nginx does not start with mod-http-auth-ldap dynamic module #134

Open jurim76 opened 8 years ago

jurim76 commented 8 years ago

OS: Debian 8 nginx version: nginx/1.10.0 built with OpenSSL 1.0.1k 8 Jan 2015 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module --add-dynamic-module=/usr/local/src/nginx/nginx-1.10.0/debian/modules/nginx-auth-pam --add-dynamic-module=/usr/local/src/nginx/nginx-1.10.0/debian/modules/nginx-auth-ldap --add-module=/usr/local/src/nginx/nginx-1.10.0/debian/modules/nginx-dav-ext-module --add-module=/usr/local/src/nginx/nginx-1.10.0/debian/modules/nginx-echo --add-module=/usr/local/src/nginx/nginx-1.10.0/debian/modules/nginx-upstream-fair --add-module=/usr/local/src/nginx/nginx-1.10.0/debian/modules/ngx_http_substitutions_filter_module

cat /etc/nginx/modules-enabled/50-mod-http-auth-ldap.conf load_module modules/ngx_http_auth_ldap_module.so;

Define ldap_server in /etc/nginx/nginx.conf ldap_server ad_1 { .... }

Run nginx: nginx -t nginx: [emerg] unknown directive "ldap_server" in /etc/nginx/nginx.conf:37 nginx: configuration file /etc/nginx/nginx.conf test failed

NB: Nginx runs correctly with a static http-auth-ldap module.

jurim76 commented 8 years ago

Hi and1990,

I'm sorry, but my final goal is working dynamic module, not static

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sun, May 15, 2016 at 6:36 AM, and1990 notifications@github.com wrote:

I have solved the problem. This 2e3e8a9e147a0446b5097976695fa6cc5cb6f17 commit maybe have bugs.

so,the solution is: 1.you should get the ngx_http_auth_ldap_module.c file of before 2e3e8a9e147a0446b5097976695fa6cc5cb6f17 commit 2.copy the file to the nginx_auth_ldap directory 3.then run the commend below

./configure --prefix=/usr/local/nginx --add-module=../nginx-auth-ldap make && make install 4.then have a test and it worked.

Hopes can help you, thanks.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/kvspb/nginx-auth-ldap/issues/134#issuecomment-219264363