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.

18 lines
602 B

5 years ago
version: '3'
services:
group-sync:
container_name: gitea-group-sync
build: .
image: gitea-group-sync:latest
5 years ago
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'
LDAP_USER_LOGIN_ATTRIBUTE: uid
5 years ago
REP_TIME: '@every 1m'