LDAP应用篇(3)Nginx接入
实验环境:Oracle Linux R8
在搞Nginx比较错愕的是,居然 Nginx 并未内置对LDAP的支持,需要单独编译。然而 yum 安装的 nginx 并不支持导入模块,不得不再次温习一下编译安装 Nginx 的路数了。
下载组件
从 github 中下载组件的源代码:
cd ~ && git clone https://github.com/kvspb/nginx-auth-ldap.git
部署Nginx
环境准备
yum install openssl openssl-devel pcre-devel make autoconf gcc gcc-c++ -y
编译
./configure --user=nginx --group=nginx --prefix=/etc/nginx \
--error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log \
--with-http_ssl_module --with-http_v2_module --with-