linux 6.4如何改密码,centos 6.4 openldap 2.4 版本 系统认证无法更改密码

centos 6.4 openldap 2.4 版本 系统认证无法更改密码,错误提示:

openldap: LDAP password information update failed: Insufficient access

tail /var/log/securce

passwd: pam_unix(passwd:chauthtok): user "test" does not exist in /etc/passwd

解决方案:

在 sldap.conf 中加入:

access to attrs=userPassword

by self write

by anonymous auth

by dn.base="cn=Manager,dc=mycompany,dc=com" write

by * none

access to *

by self write

by dn.base="cn=Manager,dc=mycompany,dc=com" write

by * read

上面行最主要的加在database config 前面,否则不生效。

然后执行

rm -rf /etc/openldap/slapd.d/*

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

chown -R ldap:ldap /etc/openldap/slapd.d

service slapd restart

百度空间:http://hi.baidu.com/nessus1/item/2425dc4cdcb2251c896d10d3

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值