title: how to get groups of a user in ldap
body: <p>i am using openldap with phpldapadmin, and i'm trying to check what are the groups of a certain user. 
  this is my scheme ... </p>
  
  <p><a href="https://i.stack.imgur.com/csoI3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/csoI3.png" alt="Ldap Scheme"></a></p>
  
  <p>this is what i tried, but it didn't work</p>
  
  <pre><code>docker-compose exec openldap ldapsearch -x -H "ldap://openldap" -D "cn=admin,dc=openldap" -w admin -b "cn=root,ou=django,dc=openldap" '(&amp;(objectClass=*)(member=cn=superuser,ou=groups,dc=openldap))'
  </code></pre>
  
  <p>PS: i'm new to ldap, <a href="https://github.com/osixia/docker-openldap" rel="nofollow noreferrer">this</a> is the image i'm using </p>