Bug 197596 - www/nginx: HTTP_AUTH_LDAP doesn't seem to work
Summary: www/nginx: HTTP_AUTH_LDAP doesn't seem to work
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Sergey A. Osokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-13 16:16 UTC by Euan Thoms
Modified: 2015-06-03 11:05 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (osa)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Euan Thoms 2015-02-13 16:16:27 UTC
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
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-02-13 16:16:27 UTC
Auto-assigned to maintainer osa@FreeBSD.org
Comment 2 Marc Werner 2015-02-26 08:46:14 UTC
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
Comment 3 Sergey A. Osokin freebsd_committer freebsd_triage 2015-06-03 11:05:14 UTC
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.