Last post Jul 24, 2013 04:25 PM by smirnov
Jul 15, 2013 07:44 AM|johnjohn123123|LINK
I am working with an asp.net mvc web application. and I am retrieving a list of Active Directory username, using Principle Class. but I can not understand the differences between Principle.Name & Principle.SamAccountName?. As for all the current users the
two properties are having exactly the same values
Jul 22, 2013 03:52 AM|Angie xu - MSFT|LINK
the differences between Principle.Name & Principle.SamAccountName?.
Principal.SamAccountName Property gets or sets the SAM account name for this principal,
Principal.Name Property gets or sets the name of this principal.
At the same time you can also learn a series of
Principal properties here,
Jul 24, 2013 04:25 PM|smirnov|LINK
The samaccountname value comes from the authentication method at pre-Windows 2000 systems and the Principle.Name is a user principal name (UPN) associated with the user account at newest systems. Depends on domain and network configuration they
could have same or different values (composed of the user logon name and the UPN suffix joined by the @ sign).
Some applications can still use sAMAccountName, so that's probably why sAMAccountName is still there. So, if your AD has the same values you can use just one of the attributes.