The 3rd party module "http_auth_ldap" (AKA kvspb/nginx-auth-ldap on github) does not seem to work. I have defined an ldap server using the ldap_server directive. But I get the following error: nginx: [emerg] unknown directive "ldap_server" in /usr/local/etc/nginx/nginx.conf:23 I have doubled checked for any strange characters that may be tripping it up. The syntax is correct, including brackets. However, the module seems to be in use, as seen below: # nginx -V nginx version: nginx/1.6.2 TLS SNI support enabled configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --with-ipv6 --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --with-http_addition_module --add-module=/usr/ports/www/nginx/work/samizdatco-nginx-http-auth-digest-bd1c86a --add-module=/usr/ports/www/nginx/work/http_auth_ldap-c4dc7c9153 --add-module=/usr/ports/www/nginx/work/ngx_http_auth_request_module-0.2 --with-http_stub_status_module --with-pcre --with-http_ssl_module
Auto-assigned to maintainer osa@FreeBSD.org
I get the same error. Nginx compiles without problems but when any LDAP directive is used it won't start. # nginx -V nginx version: nginx/1.6.2 TLS SNI support enabled configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --with-ipv6 --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --add-module=/usr/ports/www/nginx/work/http_auth_ldap-c4dc7c9153 --with-http_stub_status_module --with-pcre --with-http_ssl_module
The third-party LDAP module has been updated: GIT_HTTP_AUTH_LDAP_VERSION= 928856aa95 GH_ACCOUNT+= kvspb:http_auth_ldap Please update your ports tree, build new version.