• <small id='UyYde'></small><noframes id='UyYde'>

    1. <i id='UyYde'><tr id='UyYde'><dt id='UyYde'><q id='UyYde'><span id='UyYde'><b id='UyYde'><form id='UyYde'><ins id='UyYde'></ins><ul id='UyYde'></ul><sub id='UyYde'></sub></form><legend id='UyYde'></legend><bdo id='UyYde'><pre id='UyYde'><center id='UyYde'></center></pre></bdo></b><th id='UyYde'></th></span></q></dt></tr></i><div id='UyYde'><tfoot id='UyYde'></tfoot><dl id='UyYde'><fieldset id='UyYde'></fieldset></dl></div>

        <tfoot id='UyYde'></tfoot><legend id='UyYde'><style id='UyYde'><dir id='UyYde'><q id='UyYde'></q></dir></style></legend>
        • <bdo id='UyYde'></bdo><ul id='UyYde'></ul>

        Python 3.5、ldap3 和 modify_password()

        Python 3.5, ldap3 and modify_password()(Python 3.5、ldap3 和 modify_password())

        <small id='CSa4G'></small><noframes id='CSa4G'>

      1. <legend id='CSa4G'><style id='CSa4G'><dir id='CSa4G'><q id='CSa4G'></q></dir></style></legend>
          <bdo id='CSa4G'></bdo><ul id='CSa4G'></ul>

              1. <i id='CSa4G'><tr id='CSa4G'><dt id='CSa4G'><q id='CSa4G'><span id='CSa4G'><b id='CSa4G'><form id='CSa4G'><ins id='CSa4G'></ins><ul id='CSa4G'></ul><sub id='CSa4G'></sub></form><legend id='CSa4G'></legend><bdo id='CSa4G'><pre id='CSa4G'><center id='CSa4G'></center></pre></bdo></b><th id='CSa4G'></th></span></q></dt></tr></i><div id='CSa4G'><tfoot id='CSa4G'></tfoot><dl id='CSa4G'><fieldset id='CSa4G'></fieldset></dl></div>
                  <tbody id='CSa4G'></tbody>
                <tfoot id='CSa4G'></tfoot>
                  本文介绍了Python 3.5、ldap3 和 modify_password()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我一直在努力尝试通过脚本发送更新我自己的密码的请求.这是代码:

                  I've been pulling my hair out trying to send a request to update my own password via a script. here is the code:

                  #!/usr/bin/python3.5
                  
                  from ldap3 import Server, Connection, NTLM, ALL
                  
                  server = Server('ldap://192.168.0.80', use_ssl=True)
                  
                  conn = Connection(server, user="local\dctest", password="Pa55word1", authentication=NTLM, auto_bind=True)
                  
                  dn = "CN=dctest,CN=Users,DC=home,DC=local"
                  
                  conn.extend.microsoft.modify_password(dn, new_password="Pa55word2", old_password="Pa55word1")
                  

                  我得到的错误是:

                  {'dn': '', 'type': 'modifyResponse', 'description':'unwillingToPerform','推荐':无,'结果':53,'消息':'00002077: SvcErr: DSID-03190E44, 问题 5003 (WILL_NOT_PERFORM),数据 0 x00'}

                  {'dn': '', 'type': 'modifyResponse', 'description': 'unwillingToPerform', 'referrals': None, 'result': 53, 'message': '00002077: SvcErr: DSID-03190E44, problem 5003 (WILL_NOT_PERFORM), data 0 x00'}

                  知道我做错了什么吗?

                  我拥有对 DC 的完全访问权限,并且我已确保密码正确等.我已阅读所有文档,但无法理解它.

                  I have full access to the DC and I've made sure that the passwords are correct etc. I've read all the docs and just can't get my head around it.

                  任何帮助都会很棒!

                  推荐答案

                  好的,谢谢大家的帮助,还有github上的开发者.

                  OK thank you to everyone for your help, and the developers on github.

                  最后我用来完成这项工作的代码是......

                  the code i used to make this work in the end was...

                  from ldap3 import Server, Connection
                  
                  server = Server('ldaps://<AD server address>', use_ssl=True)
                  conn = Connection(server, user="<domain>\<username>", password="<current password>", auto_bind=True)
                  
                  dn = 'CN=<username>,OU=Users,DC=<dominaname>'
                  
                  res = conn.extend.microsoft.modify_password(dn, old_password='<current password>', new_password='<new password>')
                  print(res)
                  

                  我想我会发布可行的解决方案,因为互联网上似乎没有任何解决方案!上帝会加速我的同胞开发人员.

                  Thought i'd post the working solution as there doesn't seem to be any on the internets!! God speed my fellow devops people.

                  这篇关于Python 3.5、ldap3 和 modify_password()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Pythonic and efficient way of finding adjacent cells in grid(在网格中查找相邻单元格的 Pythonic 和有效方法)
                  map a hexagonal grid in matplotlib(在 matplotlib 中映射六边形网格)
                  Execute arbitrary python code remotely - can it be done?(远程执行任意 python 代码 - 可以吗?)
                  Python - Plotting colored grid based on values(Python - 根据值绘制彩色网格)
                  Is there a GUI design app for the Tkinter / grid geometry?(是否有 Tkinter/网格几何图形的 GUI 设计应用程序?)
                  tkinter Canvas Scrollbar with Grid?(带有网格的 tkinter 画布滚动条?)
                  <i id='uo5zx'><tr id='uo5zx'><dt id='uo5zx'><q id='uo5zx'><span id='uo5zx'><b id='uo5zx'><form id='uo5zx'><ins id='uo5zx'></ins><ul id='uo5zx'></ul><sub id='uo5zx'></sub></form><legend id='uo5zx'></legend><bdo id='uo5zx'><pre id='uo5zx'><center id='uo5zx'></center></pre></bdo></b><th id='uo5zx'></th></span></q></dt></tr></i><div id='uo5zx'><tfoot id='uo5zx'></tfoot><dl id='uo5zx'><fieldset id='uo5zx'></fieldset></dl></div>
                    <bdo id='uo5zx'></bdo><ul id='uo5zx'></ul>

                      • <legend id='uo5zx'><style id='uo5zx'><dir id='uo5zx'><q id='uo5zx'></q></dir></style></legend><tfoot id='uo5zx'></tfoot>
                        1. <small id='uo5zx'></small><noframes id='uo5zx'>

                              <tbody id='uo5zx'></tbody>