Hi,
At the moment Im using the following VB to get the user's actual name to display a "Logged in As" header on a webpage :
Dim Accname As String
Dim username As String
username = User.Identity.Name
' Gets the Your Domain1234/FRED51523
Accname = Mid(Request.ServerVariables("LOGON_USER"), 10)
' Gets the fred51523 out of the Domian1234/FRED51523
Session("login") = Accname.ToString()
' Storing the FRED51523 in a session variable for future use
Const ADS_NAME_INITTYPE_GC = 3
Const ADS_NAME_TYPE_NT4 = 3
Const ADS_NAME_TYPE_1779 = 1
' Specify the NetBIOS name of the domain and the NT name of the user.
Dim strNTName As String = username
' Use the NameTranslate object to convert the NT user name to the
' Distinguished Na ...
Go to the complete details ...