[英]Not able to update objectClass attribute of AD domain group using ansible
Using Ansible trying to create AD domain group and update objectClass attribute.使用 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
Thank you Mathias R. Jessen for your suggestion.感谢Mathias R. Jessen的建议。 Posting this an answer to help other community member.发布此答案以帮助其他社区成员。
The objectClass property of a user object would identify the top
, person
, organizationalPerson
, and user
classes.用户对象的 objectClass 属性将标识top
、 person
、 organizationalPerson
和user
类。
The system sets the objectClass
value when the object instance is created and it cannot be changed.系统在创建对象实例时设置了objectClass
值,并且不能更改。
Getting an error when I am trying to update the Object Class尝试更新对象类时出错
Please refer this MS Article : Object Class and Object Category - Win32 apps |请参阅这篇 MS 文章: 对象类和对象类别 - Win32 应用程序 | Microsoft Docs 微软文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.