专业的编程技术博客社区

网站首页 > 博客文章 正文

安装LDAP报错:Invalid credentials (49)解决办法

baijin 2024-10-02 11:12:22 博客文章 5 ℃ 0 评论

今日公司安装LDAP,安装文档一步步全部成功,唯独到ldapadd -x -D "cn=admin,dc=exaplm,dc=com" -W -f /tmp/base.ldif 这步一直提示 Invalid credentials (49),经过多次查找终于找到解决办法:

# cd openldap/

# cd slapd.d/

#cd ../

mv slapd.d{,.bak} 先备份配置文件

#slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d

5698c2e2 invalid config directory /etc/openldap/slapd.d, error 2

slaptest: bad configuration directory!

# mkdir slapd.d

# slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d

config file testing succeeded

# /etc/init.d/slapd restart

停止 slapd:[确定]

正在检查 slapd 的配置文件:[失败]

5698c2f5 ldif_read_file: Permission denied for "/etc/openldap/slapd.d/cn=config.ldif"

slaptest: bad configuration file!

# chown -R ldap:ldap * 给文件加权限

# /etc/init.d/slapd restart

停止 slapd:[失败]

正在启动 slapd:[确定]

# /etc/init.d/slapd restart

停止 slapd:[确定]

正在启动 slapd:[确定]

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表