1、基本概念shell
http://my.oschina.net/u/204498/blog/528382 vim
2、安裝app
[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 =>能夠生成密碼 ... ...