title: checking if a user belongs to a group in ldap
body: <p>I'm new to LDAP and have a question.I want to check if particular user belongs to a particular group or not. i figured out how to query the ldap server.So it is right now able to check if the user exists on the server or not. but i couldn't figure out how to check  the user with the right group (line below is what i have used)</p>
  
  <pre><code>l_retval := DBMS_LDAP.search_s(l_session,l_ldap_base, DBMS_LDAP.scope_subtree, 'objectclass=*', l_attrs, 0, l_message);
  </code></pre>
  
  <p>My main purpose is to authorize users of a particular group (not authenticate)</p>
  
  <p>I have two bases-one for authorization <code>(uid=anders,ou=ourusers,o=company)</code> and one for the groups <code>(cn=programmers,ou=groups,o=company)</code></p>
  
  <p>Could anyone please guide me so as how to proceed!</p>