Open mick1627 opened 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.
cc @Lunik @Shaps @dj-wasabi @marwatk @waheedi click here for bot help
cc @metanovii @scodeman @zanssa click here for bot help
cc @sh0shin click here for bot help
cc @lgatellier @nejch click here for bot help
cc @suukit click here for bot help
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.
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)
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
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.
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
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