Line 105: |
Line 105: |
| Nginx doesn't support LDAP authentication with it's default modules, so a third-party module (https://github.com/kvspb/nginx-auth-ldap) is required. More information can be found here: http://deezx.github.io/blog/2015/04/24/how-to-configure-nginx-with-ldap-authentication/ | | Nginx doesn't support LDAP authentication with it's default modules, so a third-party module (https://github.com/kvspb/nginx-auth-ldap) is required. More information can be found here: http://deezx.github.io/blog/2015/04/24/how-to-configure-nginx-with-ldap-authentication/ |
| | | |
− | Example configurations to come when after implementing nginx authentication. | + | Example configurations to come after implementing nginx authentication. |
| + | |
| + | Building nginx 1.8.0 from source with LDAP support on Debian Jessie |
| + | |
| + | apt-get remove nginx |
| + | apt-get install libldap2-dev libpcre3-dev build-essential |
| + | wget http://nginx.org/download/nginx-1.8.0.tar.gz |
| + | git clone https://github.com/kvspb/nginx-auth-ldap.git |
| + | tar -zxvf nginx-1.8.0.tar.gz |
| + | cd nginx-1.8.0 |
| + | ./configure --user=nginx \ |
| + | --group=nginx \ |
| + | --prefix=/etc/nginx \ |
| + | --sbin-path=/usr/sbin/nginx \ |
| + | --conf-path=/etc/nginx/nginx.conf \ |
| + | --pid-path=/var/run/nginx.pid \ |
| + | --lock-path=/var/run/nginx.lock \ |
| + | --error-log-path=/var/log/nginx/error.log \ |
| + | --http-log-path=/var/log/nginx/access.log \ |
| + | --with-http_gzip_static_module \ |
| + | --with-http_stub_status_module \ |
| + | --with-http_ssl_module \ |
| + | --with-pcre \ |
| + | --with-file-aio \ |
| + | --with-http_realip_module \ |
| + | --add-module=../nginx-auth-ldap \ |
| + | --with-ipv6 \ |
| + | --with-debug |
| + | make |
| + | make install |
| + | |
| + | If you didn't have debian-packaged nginx installed previously, you will also want to install and configure an nginx init script/systemd service unit. |