Gerrit LDAP setup with Foxpass

For a binder called 'gerrit': (cn=gerrit,dc=example,dc=com)

in gerrit.config, make the following changes:

[auth]
    type = LDAP

[ldap]
    server = ldaps://ldap.foxpass.com

    username = cn=gerrit,dc=example,dc=com
    accountBase = dc=example,dc=com
    accountPattern = (&(uid=${username})(memberOf=cn=gerrit,ou=groups,dc=example,dc=com))
    accountFullName = cn
    supportAnonymous = false

Make the following additions to secure.config

[ldap]
        password = {PASSWORD}