test-env:
server | 192.168.10.11 | rhel65m |
client | 192.168.10.12 | client |
setenforce 0
/etc/init.d/NetworkManager stop
/etc/init.d/iptables stop
server-rhel6.5:
# 添加域名解析记录
yum install openldap-servers openldap-clients migrationtools
slappasswd -s admin
{SSHA}W+thx5t3BaoG8fcohM+edHSJb8MHDKxz
vim /etc/openldap/slapd.d/cn\=config/olcDatabase\=\{2\}bdb.ldif
5 olcSuffix: dc=example,dc=com
10 olcRootDN: cn=admin,dc=example,dc=com
11 olcRootPW: {SSHA}W+thx5t3BaoG8fcohM+edHSJb8MHDKxz
vim /etc/openldap/slapd.d/cn\=config/olcDatabase\=\{1\}monitor.ldif
4 olcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=externa
5 l,cn=auth" read by dn.base="cn=admin,dc=example,dc=com" read by * none
client:
systemctl stop NetworkManager
systemctl stop firewalld
setenforce 0
# 添加域名解析记录
vi /etc/hosts