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

    2. <tfoot id='KGjM0'></tfoot>
      1. <legend id='KGjM0'><style id='KGjM0'><dir id='KGjM0'><q id='KGjM0'></q></dir></style></legend>

        ldap3 python修改用过滤器替换对象

        ldap3 python modify replace an object with filter(ldap3 python修改用过滤器替换对象)

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

          <tfoot id='o6djc'></tfoot>

              <legend id='o6djc'><style id='o6djc'><dir id='o6djc'><q id='o6djc'></q></dir></style></legend>

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

                  本文介绍了ldap3 python修改用过滤器替换对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在应用 ldapmodify 时我们如何过滤?

                  How can we filter when applying ldapmodify?

                  例如:这是我的用户对象的样子:

                  For eg: this is how my user object looks like:

                  dn: mail=abc@d.com,ou=users,dc=dev,dc=com序号:po给定名称:abc引脚:1234邮件:abc@d.com电话号码:11234567890启用:假城市:城市邮箱:abc@d.como: 组织

                  如果他的组织是 org,我想修改这个用户的城市.如何应用这样的过滤器?

                  I want to modify this user's city if his org is org. How can I apply such a filter?

                  我正在使用 ldap3 进行操作,我需要使用控件吗?

                  I am doing it using ldap3, do I need to use controls?

                  推荐答案

                  您需要将 Assertion Control 连同您的修改操作一起发送(参见 RFC 4528).基本上,该控件包含一个必须匹配的过滤器.

                  You need to send the Assertion Control along with your modify operation (see RFC 4528). Basically the control contains a filter which has to be matched.

                  我在 web2ldap 中使用此控件来防止并发写入做任何坏事.

                  I'm using this control in my web2ldap to prevent concurrent writes to do anything bad.

                  我怀疑 ldap3 模块是否支持开箱即用.

                  I have some doubts that ldap3 module supports it out-of-the-box though.

                  补充说明:

                  • 并非所有 LDAP 服务器都支持此控件.
                  • 支持此控件的 LDAP 服务器实现中存在一些细微的错误.

                  这篇关于ldap3 python修改用过滤器替换对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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='kVReX'><tr id='kVReX'><dt id='kVReX'><q id='kVReX'><span id='kVReX'><b id='kVReX'><form id='kVReX'><ins id='kVReX'></ins><ul id='kVReX'></ul><sub id='kVReX'></sub></form><legend id='kVReX'></legend><bdo id='kVReX'><pre id='kVReX'><center id='kVReX'></center></pre></bdo></b><th id='kVReX'></th></span></q></dt></tr></i><div id='kVReX'><tfoot id='kVReX'></tfoot><dl id='kVReX'><fieldset id='kVReX'></fieldset></dl></div>
                1. <small id='kVReX'></small><noframes id='kVReX'>

                    <bdo id='kVReX'></bdo><ul id='kVReX'></ul>

                      <tfoot id='kVReX'></tfoot><legend id='kVReX'><style id='kVReX'><dir id='kVReX'><q id='kVReX'></q></dir></style></legend>

                              <tbody id='kVReX'></tbody>