univention / ansible-modules

Ansible Modules for UCS
GNU General Public License v3.0
11 stars 6 forks source link

univention_directory_module: superordinate option not available #7

Closed Daenou closed 1 year ago

Daenou commented 1 year ago

I tried creating an object that needs the UDM CLI option --superordinate to be created.

I've tried a bunch different ways but none worked, but I haven't found superordinate in the source code anywhere so I guess it's not implemented yet.

My code:

---
- name: Test UDM
  hosts: testhost
  tasks:
    - name: UDM
      univention.ucs_modules.univention_directory_manager:
        module: "settings/extended_attribute"
        dn: "cn=owncloudgroup,cn=custom attributes,cn=univention,dc=school,dc=ch"
        position: "cn=custom attributes,cn=univention,dc=school,dc=ch"
        set_properties: 
          - property: CLIName
            value: OwnCloudGroup
          - property: groupName
            value: school-Cloud
          - property: groupPosition
            value: "1"
          - property: ldapMapping
            value: customAttributeOwnCloudGroup
          - property: longDescription
            value: "school-Cloud activate, use 0 or 1 (customAttributeOwnCloudGroup)"
          - property: mayChange
            value: "1"
          - property: module 
            value: groups/group
          - property: multivalue
            value: "0"
          - property: name
            value: owncloudgroup
          - property: objectClass
            value: customAttributeGroups
          - property: shortDescription
            value: customAttributeOwnCloudGroup
          - property: tabName
            value: ICT
          - property: tabPosition
            value: "1"

Of course, this could be workarounded with a shell command, but that's not really the idea of ansible.

HunterZeroSix commented 1 year ago

added with feat(univention_directory_manager): implement udm "superordinate" option

Thanks to @s3lph for the PR

Feel free to reopen or create a new issue if the error occurs again.