Gitea: Support for LDAP and AD Group sync

Created on 28 Mar 2017  路  13Comments  路  Source: go-gitea/gitea

Description

Add support for LDAP and Active Directory Groups:

see: https://github.com/gogits/gogs/issues/662#issuecomment-227384886

Other good example is the Jenkins LDAP plugin:
https://wiki.jenkins-ci.org/display/JENKINS/LDAP+Plugin

kinfeature revieweconfirmed

Most helpful comment

To express interest, please use the "+1" reaction feature on the first post (as several users have done already). Comments should be preferred for on-topic suggestions and discussions, to avoid unnecessary clutter and notifications for everyone subscribed to this issue.

All 13 comments

I'm missing exactly this feature now. Difficult to add users to orgs or groups if they have not been signed in at any time

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

https://github.com/tws-inc/gitea-group-sync exists.

Would be nice if it was merged upstream.

@divansantana, yes, the gitea-group-sync looks like a promising and logical approach until something better gets implemented. I. e. a cron job needs to be setup that does the following:

  1. Iterate over existing Organizations and Teams.
  2. For every Team, lookup matching Users via a LDAP query.
  3. Add / remove corresponding Users in the Team.

For steps 1 and 3, Gitea API (RESTful services) can be used. Not sure if direct access Gitea database would be safe as well. Anyway, for bigger structures the queries to LDAP could be possibly optimized...

Any more ideas?

We are also wanting this feature.
Optimally there would be a field on a team to link it to an explicit ldap group or userfilter.

Otherwise the gitea-group-sync is a quite usefull approach and would be sufficent for at least something. It should include a separate placeholder for organisation and team-name then at least.
And possibly consolidate the list of resulting queries first because I think it wil be quite common to have some same teams in different organisations.

We are also wanting this feature.

We also want this feature

To express interest, please use the "+1" reaction feature on the first post (as several users have done already). Comments should be preferred for on-topic suggestions and discussions, to avoid unnecessary clutter and notifications for everyone subscribed to this issue.

This feaute will be very usefull.

+1

I know this project but it didd't work very well for my gitea server and a native integration in gitea itself would be better.

OK - suggest a workable UI and how it could work then it could potentially be implemented.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

adpande picture adpande  路  3Comments

flozz picture flozz  路  3Comments

lunny picture lunny  路  3Comments

kolargol picture kolargol  路  3Comments

jonasfranz picture jonasfranz  路  3Comments