Hi Experts

I would like to use JAAS to create a custom login module.
The first step I would like to do is retrieve the currently logged in AD user.
I will then use the AD user to authenticate against a DB table.

Can someone please help me with how to retrieve the current AD user? (I won't be using Kerberos)