openldap 之 客戶端部署 [root@client ~]# cat /etc/yum.repos.d/base.repo[os]name=osbaseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/enabled=1gp ...
openldap 之 客戶端部署
[root@client ~]# cat /etc/yum.repos.d/base.repo
[os]
name=os
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/
enabled=1
gpgcheck=0
[epel]
name=epel
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/
enabled=1
gpgcheck=0
[root@client ~]# yum install -y openldap-clients
[root@client ~]# yum install -y nss-pam-ldapd
[root@client ~]# authconfig-tui
[root@client ~]# getent passwd demouser1
#如果能獲取到用戶信息,說明安裝成功。註意:預設ldap用戶在客戶端本地是沒辦法創建家目錄的
[root@client ~]# id demouser1
#如果能獲取到用戶信息,說明安裝成功。註意:預設ldap用戶在客戶端本地是沒辦法創建家目錄的
[root@client ~]# yum install -y nfs-utils autofs
[root@client ~]# vim /etc/auto.master
/home /etc/auto.autofs --timout=600 #添加此行
[root@client ~]# vim /etc/auto.autofs
kerberos.jackcui.com:/home/& #添加此行
[root@client ~]# systemctl enable autofs.service
[root@client ~]# systemctl start autofs