ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
793 stars 1.46k forks source link

Feature Request: gitlab_group add LDAP link to an existing GitLab group #575

Open mick1627 opened 4 years ago

mick1627 commented 4 years ago
SUMMARY

gitlab_group should be able to manage group syncing. it allows LDAP groups to be mapped to GitLab groups as explain here => https://docs.gitlab.com/ee/user/group/index.html#manage-group-memberships-via-ldap This options is only available on gitlab EE.

ISSUE TYPE
COMPONENT NAME

gitlab_group

ADDITIONAL INFORMATION

Here how it is manage using API call => https://docs.gitlab.com/ee/api/groups.html#add-ldap-group-link-with-cn-or-filter-starter

    - name: Set an LDAP link to an existing GitLab group
      gitlab_group_ldap_link:
        group_id: "12345"
        cn: "testuser"
        access_level: "developer"
        ldap_provider: "ldapmain"
ansibullbot commented 4 years ago

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 4 years ago

cc @Lunik @Shaps @dj-wasabi @marwatk @waheedi click here for bot help

ansibullbot commented 3 years ago

cc @metanovii @scodeman @zanssa click here for bot help

ansibullbot commented 2 years ago

cc @sh0shin click here for bot help

ansibullbot commented 2 years ago

cc @lgatellier @nejch click here for bot help

ansibullbot commented 2 years ago

cc @suukit click here for bot help

ansibullbot commented 1 year ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

Lunik commented 1 year ago

This one will be hard to implement an test as the feature is only available to premium self hosted GitLab instances (not available on GitLab.com)

nejch commented 1 year ago

I've just created https://github.com/python-gitlab/python-gitlab/pull/2379 on the python-gitlab side. This will need to wait for that to be released in order to list existing LDAP group links, so will require python-gitlab 3.12 or higher (release is on November 28th). Assuming the library is used instead of plain requests.

Also have to make sure the new methods are used for create/delete, as the old ones use deprecated API endpoints :)

@Lunik python-gitlab creates a temporary license for the gitlab container in functional tests, so if you just need some ad-hoc testing you can reuse that container or approach

ntimo commented 10 months ago

Is there any progress on this since the feature has been added to https://github.com/python-gitlab/python-gitlab/pull/2379 and is merged.

MostTimeLurker commented 6 months ago

i created a ... very ripped off module "gitlab_group_ldap" for adding ldap-cn stuff. if there's a need, i would hand it off