在执行 ldapadd -x -D cn=Manager,dc=srv,dc=world -W -f basedomain.ldif,要求输入密码Enter LDAP Password: ldap_bind: Invalid credentials (49)。是因为密码错误。修改配置文件/etc/openldap/slapd.d/cn=config/olcDatabase={2}hdb.ldif, olcRootPW: {SSHA}nA63z2kRl/E0Z7LgBMq04KhA7Vsg2Qwr项目即可