首页 > 代码库 > gerrit + LDAP搭建

gerrit + LDAP搭建

 

gerrit.config文件配置内容:

[gerrit]
        basePath = git
        canonicalWebUrl = http://127.0.0.1:7081/
[database]
        type = mysql
        database = reviewdb
        hostname = localhost
        username = root
[index]
        type = LUCENE
[auth]
        type = LDAP
[ldap]
        server = ldap://localhost
        username = cn=admin,dc=srcbin,dc=net
        accountBase = ou=Users,dc=srcbin,dc=net
        groupBase = ou=groups,dc=srcbin,dc=net
        groupMemberPattern = (member=${dn})
        accountFullName = cn
[sendemail]
        enable = true
        smtpServer = smtp.srcbin.net
        smtpServerPort = 465
        smtpEncryption = ssl
        smtpUser = noreply@srcbin.net
        smtpPass = xxxxxx
        sslVerify = false
        from = 源码盒子<noreply@srcbin.net>
[container]
        user = gerrit
        javaHome = /usr/lib/jvm/java-7-openjdk-amd64/jre
[sshd]
        listenAddress = *:29418
[httpd]
        listenUrl = http://127.0.0.1:7081/
[cache]
        directory = cache

 

 

 

 

 

aa

gerrit + LDAP搭建