title: LDAP Filter memberof
body: <p>Hallo I need help to optimize a LDAP Filter string because the Ldap filter is too long (maximum is 255 characters) for my tool (Foreman).
  My LDAP curent Ldap filter</p>
  
  <pre><code>(|
     (memberOf=cn=admingoup,ou=groups,OU=admin,DC=xxx,DC=de)
     (memberOf=CN=group1,OU=dd,OU=cc,OU=ab,DC=xxx,DC=de)
     (memberOf=CN=group2,OU=dd,OU=cc,OU=ab,DC=xxx,DC=de)
  )
  </code></pre>
  
  <p>This work but i need a soultion like</p>
  
  <pre><code>(|
     (memberOf=cn=admingoup,ou=groups,OU=admin,DC=xxx,DC=de)
     (memberOf=CN=*,OU=dd,OU=cc,OU=ab,DC=xxx,DC=de)
  )
  </code></pre>