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)
l_retval := DBMS_LDAP.search_s(l_session,l_ldap_base, DBMS_LDAP.scope_subtree, 'objectclass=*', l_attrs, 0, l_message);
My main purpose is to authorize users of a particular group (not authenticate)
I have two bases-one for authorization (uid=anders,ou=ourusers,o=company)
and one for the groups (cn=programmers,ou=groups,o=company)
Could anyone please guide me so as how to proceed!