You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
localleon
f428ac2623
|
4 years ago | |
---|---|---|
images | 5 years ago | |
Dockerfile | 4 years ago | |
README.md | 5 years ago | |
docker-compose.yml | 5 years ago | |
gitea-group-sync.go | 4 years ago | |
go.mod | 5 years ago | |
requests.go | 5 years ago | |
run.sh | 5 years ago | |
types.go | 5 years ago |
README.md
Gitea Group Sync
This application adds users to appropriate teams in Gitea based on group membership information in LDAP.
Docker image available at totalweb/gitea-group-sync.
Installation instructions
You must have configured your LDAP with gitea
Here I will give the settings for a simple LDAP, you can configure by changing the code as you like
If you configured the Gitea <=> LDAP connection correctly, you should have users
You need to create Manage Access Tokens and add key to run.sh or docker-compose.yml the configuration file
The application supports several keys, since to add people to the group you must be the owner of the organization.
create organizations in gitea
add the appropriate groups in our case: ship_crew, admin_staff
Usage
REP_TIME: '@every 1m' -- you can change the synchronization time of groups
docker-compose up
or
./run.sh