NT User ID

Results 1 to 2 of 2

Thread: NT User ID

  1. #1
    Jeffery Guest

    Default NT User ID

    Does anyone know how to get the userid of the person logging<BR>into a &#039nt protected&#039 directory to an asp page? I used the logon_user server varaible but that gives the domain userid and<BR>I need to get the id that they entered when nt challenged them.<BR>

  2. #2
    Markkk Guest

    Default RE: NT User ID

    Actually, the LOGON_USER server variable should give you both the NT Domain and the User NT Account (at least on NT domains).<BR><BR>e.g. Request.ServerVariables("LOGON_USER") = "NTdomainUserNTAccount"<BR><BR>To get the User NT Account, you should be able to simply parse out all characters after the backslash character "\".<BR><BR>The UserNTAccount should be the user&#039s domain Account, not necessarily the user&#039s local machine Account.<BR><BR>I hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts