Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 PYAD 创建一个新的组织单位,不幸的是我在网上找不到任何有用的资源来执行此操作。有谁知道如何做到这一点?
找到了。你可以这样做:
dept = dept_entry.get() ou = pyad.adcontainer.ADContainer.from_dn("ou=depts, dc=acme, dc=local" pyad.adcontainer.ADContainer.create_container(ou, dept)