主题: CentOS6.8 執行 updateLDAPValues_095_1_to_096.py 出錯

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:iRedMail 0.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):iRedAdmin-Pro-LDAP-2.7.0
- 使用的 Linux/BSD 发行版名称及版本号:CentOS6.8
- 与您的问题相关的日志信息:
====
1).
CentOS7.3 ok
~]# python updateLDAPValues_095_1_to_096.py
* Connecting to LDAP server: ldap://127.0.0.1:389
* Authenticate as dn: cn=Manager,dc=l,dc=mydomain,dc=com
* Get all disabled mail domains ...
* No disabled domain. Exit.

2).
CentOS6.8 出現錯誤:
cn=vmailadmin 或 Manager一樣出錯

~]# python  updateLDAPValues_095_1_to_096.py
* Connecting to LDAP server: ldap://127.0.0.1:389
* Authenticate as dn: cn=vmailadmin,dc=mydomain,dc=com
Traceback (most recent call last):
  File "updateLDAPValues_095_1_to_096.py", line 25, in <module>
    conn.bind_s(bind_dn, bind_pw)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 221, in bind_s
    return self.result(msgid,all=1,timeout=self.timeout)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 436, in result
    res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 440, in result2
    res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 446, in result3
    ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 96, in _ldap_call
    result = func(*args,**kwargs)
ldap.INVALID_CREDENTIALS: {'desc': 'Invalid credentials'}

回复: CentOS6.8 執行 updateLDAPValues_095_1_to_096.py 出錯

rain6966 写道:

ldap.INVALID_CREDENTIALS: {'desc': 'Invalid credentials'}

此错误信息表示使用的 bind dn 或密码不正确。请重新确认。

回复: CentOS6.8 執行 updateLDAPValues_095_1_to_096.py 出錯

此错误信息表示使用的 bind dn 或密码不正确。请重新确认。

經查3年前的資料 ; 測試 phpLDAPadmin 的 Password 使用SSHA 或SSHA512 時,
有變更 Manager 的密碼 ; 使用新密碼後, 更新正常 .

Thank's