Get System user name at WINNT and WIN2000

Discussion in 'ASP General' started by jay.chan@ithlgroup.com, Oct 18, 2005.

  1. Guest

    I am writing a web application to get System user name. By reading the
    previous post, it seems that this method works

    <%@ Language=VBScript %>
    <%
    Dim user, pword
    user = Request.ServerVariables("AUTH_USER")
    Response.Write user
    %>

    but I want to ask is it only work at WINNT? How about WIN2000 Server, I
    can get nothing when use this statement on WIN2000 Server.

    Besides,
    If I want to use Jsp, is there any methods to achieve the same thing?

    Thank you!
     
    , Oct 18, 2005
    #1
    1. Advertisements

  2. AlanM Guest

    <> wrote in message
    news:...
    >I am writing a web application to get System user name. By reading the
    > previous post, it seems that this method works
    >
    > <%@ Language=VBScript %>
    > <%
    > Dim user, pword
    > user = Request.ServerVariables("AUTH_USER")
    > Response.Write user
    > %>
    >
    > but I want to ask is it only work at WINNT? How about WIN2000 Server, I
    > can get nothing when use this statement on WIN2000 Server.
    >



    yes it should work on any sefver that runs IIS


    > Besides,
    > If I want to use Jsp, is there any methods to achieve the same thing?
    >
    > Thank you!
    >
     
    AlanM, Oct 18, 2005
    #2
    1. Advertisements

  3. You have to turn off anonymous access to the site or directory or page and
    authenticate your users before you can get the auth_user variable to be
    populated with a value.

    Ray at work

    <> wrote in message
    news:...
    >I am writing a web application to get System user name. By reading the
    > previous post, it seems that this method works
    >
    > <%@ Language=VBScript %>
    > <%
    > Dim user, pword
    > user = Request.ServerVariables("AUTH_USER")
    > Response.Write user
    > %>
    >
    > but I want to ask is it only work at WINNT? How about WIN2000 Server, I
    > can get nothing when use this statement on WIN2000 Server.
    >
    > Besides,
    > If I want to use Jsp, is there any methods to achieve the same thing?
    >
    > Thank you!
    >
     
    Ray Costanzo [MVP], Oct 18, 2005
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nalbayo
    Replies:
    2
    Views:
    5,862
    Bruce Barker
    Nov 11, 2005
  2. Jared
    Replies:
    5
    Views:
    5,993
    Bill Yellin
    Jan 4, 2006
  3. ding feng
    Replies:
    2
    Views:
    3,274
    ding feng
    Jun 25, 2003
  4. Fabricio Sperandio

    Problems! WinNT Client -> WinXP Web Server -> Win2000 File Server

    Fabricio Sperandio, Apr 6, 2004, in forum: ASP .Net Security
    Replies:
    1
    Views:
    270
    Ken Schaefer
    Apr 6, 2004
  5. Replies:
    5
    Views:
    2,862
    Dominick Baier [DevelopMentor]
    Nov 8, 2005
  6. Antonio O''Neal

    user.identity.name returns old AD user name

    Antonio O''Neal, Oct 31, 2008, in forum: ASP .Net Security
    Replies:
    5
    Views:
    3,239
    Antonio O''Neal
    Nov 3, 2008
  7. A Lake

    Get user details ASP/LDAP/WINNT

    A Lake, Mar 11, 2005, in forum: ASP General
    Replies:
    2
    Views:
    394
    A Lake
    Mar 11, 2005
  8. Vijay Mehta

    How to get winnt login user properties

    Vijay Mehta, Oct 18, 2004, in forum: Javascript
    Replies:
    1
    Views:
    224
    Fred Oz
    Oct 18, 2004
Loading...