In my application I use authentication mode="Windows"
as a form of authentication.
In this way, I can know the user name, referring to the field in the AD and the domain of the user using HttpContext.Current.User.Identity.Name
, ex: DOMAIN\username
.
I would like to know if I can retrieve other user information, such as email, description, etc.
Using ActiveDirectoryMembershipProvider I have access to the other fields, such as userprincipalname, samaccountname, mail, etc
.
I would like to know if using authentication mode="Windows"
I can return this data.
If not, can I return some other data besides authentication mode="Windows"
?