Go script for syncing LDAP user group membership to Gitea
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.
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
group-sync:
|
|
|
|
container_name: gitea-group-sync
|
|
|
|
build: .
|
|
|
|
image: totalweb/gitea-group-sync:0.2
|
|
|
|
environment:
|
|
|
|
GITEA_TOKEN: c00c810bb668c63ce7cd8057411d2f560eac469c
|
|
|
|
GITEA_URL: http://192.168.2.2:3000
|
|
|
|
LDAP_URL: 192.168.2.2
|
|
|
|
LDAP_TLS_PORT: 636
|
|
|
|
BIND_DN: cn=admin,dc=planetexpress,dc=com
|
|
|
|
BIND_PASSWORD: GoodNewsEveryone
|
|
|
|
LDAP_FILTER: (&(objectClass=person)(memberOf=cn=%s,ou=people,dc=planetexpress,dc=com))
|
|
|
|
LDAP_USER_SEARCH_BASE: 'ou=people,dc=planetexpress,dc=com'
|
|
|
|
REP_TIME: '@every 1m'
|