![](/img/trans.png)
[英]How to list own Active Directory group memberships with Python LDAP3?
[英]How to add existing entry (user) to an existing group using ldap3 in active directory
我已經看到了有關如何使用LDAP3將新條目添加到活動目錄中的現有組的文檔和大量示例,但沒有用於將現有用戶或條目添加到另一個現有組。 (要明確的條目已經存在於其他組中,只需要添加到另一組)。
我已經嘗試過LDAP3 ADD函數,因為條目已存在而拋出錯誤,並且只允許文檔中指定的新條目。
你能幫幫我嗎?
能夠使用以下功能使其工作
ldap3.extend.microsoft.addMembersToGroups.ad_add_members_to_groups(connection, members_dn, groups_dn, fix=True, raise_error=False)
文檔鏈接: https : //ldap3.readthedocs.io/ldap3.extend.microsoft.addMembersToGroups.html
這篇文章幫助我: ldap3 python將用戶添加到組中 。 (不確定我的帖子是否會被視為重復,因為原始帖子沒有明確提到問題是什么。)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.