I would like to collect various information from an active directory using Java. I've reviewed this post How to connect with Java into Active Directory
I'm able to connect to the active directory and get the user's display name, but I would like to get the user's account name (login username) and email (if one is configured).
Please advise if and how I can get this information. Thanks in advance.