一、基本概念
http://my.oschina.net/u/204498/blog/528382
二、安装
[[email protected] ~]# 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 [[email protected] ~]# cd /etc/openldap/ [[email protected] openldap]# pwd /etc/openldap [[email protected] 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 配置 [[email protected] 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 ... [[email protected] ~]# slappasswd =>可以生成密码 ... ...
时间: 2024-10-13 18:09:57