# 请先安装好gcc make cmake编译环境 wget https://mirror-hk.koddos.net/OpenLDAP/openldap-release/openldap-2.6.6.tgz gunzip -c openldap-2.6.6.tgz tar xvfB - cd openldap-2.6.6
# 找到文件的这些内容,修改如下olcRootDN和olcRootPW,olcRootPW用slappasswd命令生成 ####################################################################### # LMDB database definitions ####################################################################### # dn: olcDatabase=mdb,cn=config objectClass: olcDatabaseConfig objectClass: olcMdbConfig olcDatabase: mdb olcDbMaxSize: 1073741824 olcSuffix: dc=example,dc=com olcRootDN: cn=Manager,dc=example,dc=com # Cleartext passwords, especially for the rootdn, should # be avoided. See slappasswd(8) and slapd-config(5) for details. # Use of strong authentication encouraged. olcRootPW: {SSHA}leJZ6xJMhmn5*****O2gXiMsa8jU94y # olcRootPW: secret # The database directory MUST exist prior to running slapd AND # should only be accessible by the slapd and slap tools. # Mode 700 recommended. olcDbDirectory: /usr/local/var/openldap-data # Indices to maintain olcDbIndex: objectClass eq