欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

openldap 之 客户端部署

程序员文章站 2022-10-30 09:14:27
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

openldap 之 客户端部署

openldap 之 客户端部署

[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