title: Easy way to test an LDAP User's Credentials
body: <p>Is there an easy way to test the credentials of a user against an LDAP instance?  I know how to write a Java program that would take the 'User DN' and password, and check it against the LDAP instance.  However is there any easier way?  Specially a method that not only authenticates the user, but also lists all the user's roles.</p>