基于openldap的统一认证方案:
一、yum安装必要组件
0:必设
0 1 2 3 4 5 6 |
$ setenforce 0 $ systemctl stop firewalld $ uname -a Linux ldap_openvpn.t4x.org 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) |
0 |
$ yum install nscd nss-pam-ldapd nss_ldap python-ldap nss nss-devel |
0 1 2 3 4 5 |
Q:Can't locate Authen/PAM.pm in @IN A:yum install perl-Authen-PAM Q:Can't locate Sys/Syslog.pm A:yum -y install perl-Sys-Syslog Q:Can't locate Net/LDAP.pm in @INC A:yum install perl-LDAP |
参考文档:
1:http://blog.51cto.com/ly36843/1675789
2:https://github.com/analogrithems/openvpn-auth-ldap-perl
3:https://github.com/waldner/openvpn-ldap
4:https://forums.openvpn.net/viewtopic.php?t=13053
5:https://github.com/kanaka/OpenVPN-LDAP-Integration/blob/master/client-connect.py
6:https://www.cnblogs.com/chuanheng/p/Python_LDAP_Auth.htmlSourceByrd's Weblog-https://note.t4x.org/service/openvpn-openldap-python/
SourceByrd's Weblog-https://note.t4x.org/service/openvpn-openldap-python/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!