Nginx configure LDAP connection auth
yum install python3 python3-pip -y
yum install git -y
git clone https://github.com/python-ldap/python-ldap.git
yum install gcc -y
yum clean all
yum groupinstall "Development tools" -y
yum provides */lber.h */ldap.h
yum install openldap-devel.x86_64 -y
yum install python-devel libevent-devel -y
See the comments in file.
If you use python version < 3, change the script of python3 for python only or python{version} in line 26 of nginx-ldap-auth-daemon-ctl-rh.sh script.
./nginx-ldap-auth-daemon-ctl-rh.sh start
If you want to use cron to analyze the nginx service and the daemon, you must download the file service_and_daemon.sh to the path /etc/nginx/conf.d and add the following entry to the cron.
*/5 * * * * sh /etc/nginx/conf.d/service_and_daemon.sh