I need some help in understanding a basic concept.
The HttpServletRequest
provides a method called getUserPrincipal()
that returns a java.security.Principal
object. Using this object we can get the user information from the AD using kerberos authentication via waffle implementation.
My question is which attribute of AD does it fetch? As per my tests, it looks like the samAccountName
, Or is it userPrincipalName
?
Could someone please help me resolve this confusion?