CentOS6-build LDAP installation ==================## install BDByum list db4 db4-utils db4-devel-y # download, install openldap-2.4.35wget ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.35.tgztar-xzvf openldap-2.4.35.tgz cd openldap-2.4.35. /configure make & make install ============================ configuration document ======== ==========## edit slapd. confvim/usr/local/etc/openldap/slapd. conf # change the Manager@lichao.so to database bdbsuffix "dc = lichao, dc = so" rootdn "cn = Manager, dc = lichao, dc = so "============================#start: /usr/local/libexec/slapd-f/usr/local/etc/openldap/slapd. specification of the ldif file attached to the conf file: (1 blank line) dn :( space) dc = mail, dc = kaspersky, dc = com (no space at the end) objectclass: (Space) dcObject (no space at the end) objectclass: (Space) organization (no space at the end) o: (Space) kaspersky (no space at the end) dc :( space) test (no space at the end) (1 blank line) dn: (Space) cn = test, dc = mail, dc = kaspersky, dc = com (no space at the end) objectclass: (Space) organizationalRole (no space at the end) cn: (Space) test (with no space at the end) (with no blank lines at the end)