Java based ldap/ad authentication and user in group functionality