当前位置: 移动技术网 > 科技>操作系统>Linux > openldap 之 客户端部署

openldap 之 客户端部署

2019年09月05日  | 移动技术网科技  | 我要评论

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

















 

 

 

 

 

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网