title: LDAP group not showing in Gerrit
body: <p>I am using Gerrit with LDAP auth. My gerrit config is like:</p>
  
  <pre><code>server = ldap://192.168.1.100:389
  username = cn=admin,dc=doman,dc=com,dc=cn
  groupsVisibleToAll = true
  accountBase = ou=Users,dc=domain,dc=com,dc=cn
  accountScope = subtree
  accountPattern = (&amp;(objectClass=inetOrgPerson)(uid=${username}))
  accountFullName = sn
  accountEmailAddress = mail
  accountSshUserName = uid
  #accountMemberField = memberOf
  #accountMemberExpandGroups = true
  #fetchMemberOfEagerly = true
  groupBase = ou=Groups,dc=domain,dc=com,dc=cn
  groupScope = subtree
  groupPattern = (&amp;(objectClass=groupOfUniqueNames)(cn=${groupname}))
  groupMemberPattern = (&amp;(objectClass=groupOfUniqueNames)(uniqueMember=${dn}))
  groupName = cn
  </code></pre>
  
  <p>LDAP tree is like:</p>
  
  <pre><code>+--&gt; dc=domain,dc=com,dc=cn (3)
    ---&gt; cn=admin
    +--&gt; ou=Groups (2)
    | ---&gt; cn=admin
    | ---&gt; cn=dev
    +--&gt; ou=Users (3)
    | ---&gt; cn=gerrit
    | ---&gt; cn=jenkins
    | ---&gt; cn=test
  </code></pre>
  
  <p>I add <code>memberOf</code> relative to LDAP myself, the group object class is <code>groupOfUniqueNames</code>, the user object class is inetOrgPerson.
  <code>groupOfUniqueNames</code> contains a attribute ``````uniqueMember which contains the <code>dn</code> of group users. <code>inetOrgPerson</code> contains a attribute <code>memberOf</code> is the dn of it's group.</p>
  
  <p>But I can't login when I add <code>accountMemberField</code>. And the LDAP groups is not showing in gerrit.</p>
  
  <p>Doc: <a href="https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#ldap" rel="nofollow noreferrer">https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#ldap</a></p>