[英]Not able to update objectClass attribute of AD domain group using ansible
使用 Ansible 尝试创建 AD 域组并更新 objectClass 属性。
- name: Create group
community.windows.win_domain_group:
name: "{{ item.name }}"
scope: global
category: security
state: present
attributes: "{{ item.attributes }}"
with_items:
- name: group1
attributes:
gidNumber: 1234
objectClass:
- group
- posixGroup
- top
感谢Mathias R. Jessen的建议。 发布此答案以帮助其他社区成员。
用户对象的 objectClass 属性将标识top
、 person
、 organizationalPerson
和user
类。
系统在创建对象实例时设置了objectClass
值,并且不能更改。
尝试更新对象类时出错
请参阅这篇 MS 文章: 对象类和对象类别 - Win32 应用程序 | 微软文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.