您的位置:首页 > 运维架构

LDAP- Openldap安装配置

2015-11-10 00:00 323 查看
一、基本概念

http://my.oschina.net/u/204498/blog/528382

二、安装

[root@hf0002 ~]# rpm -qa|grep openldap*
openldap-servers-2.4.23-34.el6_5.1.x86_64                => server
openldap-clients-2.4.23-34.el6_5.1.x86_64                => client
openldap-2.4.23-34.el6_5.1.x86_64

[root@hf0002 ~]# cd /etc/openldap/
[root@hf0002 openldap]# pwd
/etc/openldap
[root@hf0002 openldap]# ll
total 32
drwxr-xr-x. 2 ldap ldap 4096 Feb  3  2014 certs
-rw-r--r--. 1 ldap ldap  280 Feb  3  2014 ldap.conf
drwxr-xr-x  2 ldap ldap 4096 Nov  5 06:44 schema
-rw-r--r--  1 ldap ldap 4680 Nov  9 09:55 slapd.conf
-rw-r--r--  1 ldap ldap 4635 Nov  5 06:54 slapd.conf-bak
drwx------  3 ldap ldap 4096 Nov  5 07:03 slapd.d

配置
[root@hf0002 openldap]# vim slapd.conf
...
...
database        bdb
suffix          "dc=harry.com, dc=com"                =>这个配置自己的域。 harry.com
checkpoint      1024 15
rootdn          "cn=admin, dc=harry.com, dc=com"      => 这是系统管理员
...
rootpw  {SSHA}p2fES0lMnc5w3r/xR7xLDvRUcrIwhTb1        => rootpw 默认是secret
...

[root@hf0002 ~]# slappasswd            =>可以生成密码
...
...
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: