From a9d04b6bdfc38fc516fc489018afdca3db2c77be Mon Sep 17 00:00:00 2001 From: lwintermelon Date: Fri, 9 Jan 2026 10:11:20 +0800 Subject: [PATCH] example_config: Add gerrit --- example_configs/README.md | 1 + example_configs/gerrit.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 example_configs/gerrit.md diff --git a/example_configs/README.md b/example_configs/README.md index 58a8ec3..2e20019 100644 --- a/example_configs/README.md +++ b/example_configs/README.md @@ -19,6 +19,7 @@ configuration files: - [Ejabberd](ejabberd.md) - [Emby](emby.md) - [Ergo IRCd](ergo.md) +- [Gerrit](gerrit.md) - [Gitea](gitea.md) - [GitLab](gitlab.md) - [Grafana](grafana_ldap_config.toml) diff --git a/example_configs/gerrit.md b/example_configs/gerrit.md new file mode 100644 index 0000000..cea8f6f --- /dev/null +++ b/example_configs/gerrit.md @@ -0,0 +1,18 @@ +# Configuration for Gerrit + +Edit `gerrit.config`: +```ini +[auth] + type = ldap + +[ldap] + server = ldap://lldap:3890 + supportAnonymous = false + username = uid=gerritadmin,ou=people,dc=example.com,dc=com + accountBase = ou=people,dc=example.com,dc=com + accountPattern = (uid=${username}) + accountFullName = cn + accountEmailAddress = mail +``` + +The `supportAnonymous = false` must be set. \ No newline at end of file