推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
py
V2EX  ›  Python

使用 python 的 ldap 库修改 AD 用户密码报错

  •  
  •   py · Aug 26, 2016 · 3263 views
    This topic created in 3681 days ago, the information mentioned may be changed or developed.
    使用 python 的 ldap 库修改 AD 用户密码,报错信息如下:
    {'info': '0000203D: LdapErr: DSID-0C090DA1, comment: Unknown extended request OID, data 0, v1db1', 'desc': 'Protocol error'}

    代码如下:

    import ldap

    my_ldap = ldap.initialize(LDAP-URL)
    dn = get_dn() # 获取的 dn 信息是正确的
    my_ldap.simple_bind_s(dn, old_pass) # bind_s 通过
    my_ldap.passwd_s(dn, old_pass, new_pass) # 这里抛出异常
    有木有伙伴遇到同样错误的??
    注:排除权限问题
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2733 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 03:09 · PVG 11:09 · LAX 20:09 · JFK 23:09
    ♥ Do have faith in what you're doing.