Gerrit对接LDAP

2024-11-10  本文已影响0人  87d6dc4b11a7

当前部署的gerrit实例使用的 HTTP基本身份验证,即gerrit.config中的auth.type 字段为 HTTP

1、修改gerrit.config

[auth]
        type = LDAP
        gitBasicAuthPolicy = LDAP
[ldap]
        server = ldap://ldap.mydomain.com:636
        username = <user_uid>

        accountBase = ou=用户,dc=byd,dc=com
        accountFullName = displayName
        accountEmailAddress = mail

2、编辑secure.config

[ldap]
    password = <user_password>

3、修改修改docker-compose.yml,注释掉 httpd部分
4、重启

# 停止
docker-compose down
# 启动
docker-compose up -d

5、访问地址

参考链接:
https://gerrit-documentation.storage.googleapis.com/Documentation/3.9.5/config-gerrit.html#ldap

上一篇 下一篇

猜你喜欢

热点阅读