EX-200考试题目之LDAP配置

题目

1题:

Configure the verification mode of your host account and the password as LDAP. And it can ldapuser40. The password is set as "password". And the certificate login successfully through

can be downloaded from http://ip/dir/ldap.crt. After the user logs on , the user has no host directory unless you configure the autofs in the following questions.

将主机帐户的验证模式和密码配置为LDAP。 它可以ldapuser40。 密码设置为“password”。 并证书登录成功通过

 可从http://ip/dir/ldap.crt.下载 用户登录后,除非在后面的问题中配置autofs,否则用户没有主机目录。

解答1:

很明显,题目缺少了LDAP的服务器。我们不妨假设LDAP服务器是ldap://instructor.example.com。

我们这里使用的环境是CentOS  7, 请先把你安装这个虚拟机的镜像连接上:在vmware workstation里,在centos 的标签上右键,选择设置,在“硬件”标签里选 CD DVD,右边上面选已连接(centos已经开机),或者启动时连接(还没开机),选择你的这个centos本身的镜像,就是你安装这个虚拟机的介质。点击确定。

这么做的目的是为了能安装各种包。没有包命令无法使用。

开始:

这里就是安装的两个包

#yum install  –y  openldap-client

#yum install   -y  authconfig-gtk

安装包后才能用这个authentication命令,启动GUI。我这里不用命令行。

#system-config-authentication

配置LDAP服务器为 ldap://instructor.example.com

设置证书从http://ip/dir/ldap.crt下载

验证模式为LDAP Password,点击Apply

//这里的命令参考的是:

A.3. Changing Passwords Red Hat Directory Server 11 | Red Hat Customer Portal

#ldappasswd -s password ldapuser40

查看证书有没有

#cd /etc/openldap/cacerts

#pwd

#exit

查看账户,并验证登录

#id ldapuser40

#su – ldapuser40

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值