Adambean / gitlab-ce-ldap-sync

Synchronise users and groups (including group members) from an LDAP instance with Gitlab CE (and EE in free tier) self-hosted instance(s).
Apache License 2.0
59 stars 23 forks source link

Add Static Group Mapping #36

Open WillIrvine opened 1 year ago

WillIrvine commented 1 year ago

Hi,

Great tool, thanks for the effort here.

A great additional feature would be the ability to map an LDAP group name to a different group name in Gitlab. We (like many others) have a particular security group "naming scheme" on our AD server that doesn't work well as groups on Gitlab.

Being able to Statically set these in the config.yaml file would be a great addition

i.e

An LDAP group called "Grp-GitLabProject1" where it maps to gitlab group "Project1"

groupNameMapping:

Adambean commented 1 year ago

Hello,

Thanks for your feature idea. I've currently got too much else going on to look into this. Anyone wanting to implement it feel free to submit a PR.