Gerrit LDAPconfiguration

我在Windows Server 2008 R2上configuration了gerrit以及mysql和tomcat。

我已经成功完成安装。 身份validation模式是LDAP。

我无法login。 错误是:

com.google.gerrit.server.account.AccountManager: Cannot assign user name "XXXXXX" to account 8; name does not conform. 

在我的情况下,用户名包含数字,而我才知道gerrit不允许login,如果所有的字母都是数字在用户名Gerrit Google小组讨论

请指导我应该configuration什么或者什么可以解决这个问题。

那么,我得到了解决办法。 Gerrit不允许用户名是全部数字。 所以你所要做的只是在ldap部分的gerrit.config中进行一些configuration更改。

在ldap节下放:

 accountPattern = (&(objectClass=person)(mail=${username})) accountSshUserName = ${givenName}.${sn} 

现在您将能够使用您的邮件IDlogin,并且存储的用户信息将是firstname.lastname。

Cheerss!