CentOS5中安装openldap

首先,要看看需要安装的openldap套件包含了 server 及 devel 相关的套件,你可以查看系統有没有 LDAP Server 套件。命令如下:

[root@test1 openldap]# rpm -qa | grep openldap
openldap-2.3.43-12.el5_5.2
openldap-servers-2.3.43-12.el5_5.2
openldap-clients-2.3.43-12.el5_5.2

接下来,要安装这三个相关的:

# yum install openldap openldap-servers openldap-clients

这样就会自动安装好openldap了

输入命令:

[root@test1 openldap]# service ldap
Usage: /etc/init.d/ldap {start|stop|restart|status|condrestart}

就可以启动、停止、重启、查看openldap的状态了。

可以使用一下命令检查系统是否已经安装了openldap:

[root@test1 openldap]# rpm -qa openldap
openldap-2.3.43-12.el5_5.2
 

猜你喜欢

转载自lhx1026.iteye.com/blog/803110