title: What type of group to choose in OpenLDAP for grouping users
body: <p>I need to know what kind of group should I use for grouping users in LDAP.</p>
  
  <p>I basically need the function MemberOf, to get some permissions based on groups membership.</p>
  
  <p>Example:</p>
  
  <ul>
  <li>Users
  
  <ul>
  <li>User 1</li>
  <li>User 2</li>
  <li>User 3</li>
  </ul></li>
  <li>Groups
  
  <ul>
  <li>Group 1</li>
  <li>Group 2</li>
  </ul></li>
  </ul>
  
  <p>User 1 is member of Group 1 and Group 2.</p>
  
  <p>The groups need to be dynamic, like Active Directory.</p>
  
  <p>The questions comes because I have these for choose:</p>
  
  <p><code>Samba: Group Mapping</code></p>
  
  <p><code>User Group</code></p>
  
  <p><code>Generic: Posix Group</code></p>
  
  <p>The same goes for Users, which one should I choose?</p>
  
  <p><code>Generic: User Account</code></p>
  
  <p><code>Samba: Account</code></p>
  
  <p>I can't find a good site where the differences are shown, any link will be much appreciated.</p>