[Bug 212814] www/nginx

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 19 08:35:19 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212814

            Bug ID: 212814
           Summary: www/nginx
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: osa at FreeBSD.org
          Reporter: christoph.larsen at synalinq.com
             Flags: maintainer-feedback?(osa at FreeBSD.org)
          Assignee: osa at FreeBSD.org

Dear All,
I have installed Nginx from FreeBSD ports with HHTP_AUTH_LDAP enabled.
Compilation worked without any flaws.
nginx -v yieds:

nginx -V
nginx version: nginx/1.10.1
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 --modules-path=/usr/local/libexec/nginx --with-file-aio
--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-dynamic-module=/var/ports/basejail/usr/ports/www/nginx/work/nginx-auth-ldap-dbcef31
--without-http-cache --with-http_dav_module
--add-module=/var/ports/basejail/usr/ports/www/nginx/work/nginx-dav-ext-module-0.0.3
--add-module=/var/ports/basejail/usr/ports/www/nginx/work/ngx-fancyindex-0.3.6
--with-http_realip_module --with-http_stub_status_module --with-http_sub_module
--add-module=/var/ports/basejail/usr/ports/www/nginx/work/ngx_devel_kit-0.3.0
--with-pcre --with-threads
--add-module=/var/ports/basejail/usr/ports/www/nginx/work/iconv-nginx-module-0.14

So, LDAP authentication has been compiled in.
I have this in my config:

[...]
http {
    [....]
    # LDAP settings
    ldap_server                         mmc {
            url                                  "ldaps:/[ldap
server]/ou=People,o=mmc?uid?sub?";
            binddn                          "cn=LDAPReader,ou=Role,o=mms";
            binddn_passwd                   "[LDAPReader password]";
            group_attribute                 member;
            group_attribute_is_dn           on;
            require                         valid_user;
            require                         group "cn=[some
group],ou=Groups,o=mmc";
            cache_enabled                   on;
            cache_expiration_time           10000;
            cache_size                      1000;
        }

I get, when I start Nginx:

Performing sanity check on nginx configuration:
nginx: [emerg] unknown directive "auth_server" in
/usr/local/etc/nginx/nginx.conf:74
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed

This is strange, because I have obviously compiled in LDAP authentication
support. Any idea what I might be missing?
The same happens, by the way, with the latest version of the nginx-devel port.
Thanks a lot!
Chris

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list