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. Advertising

  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. Advertising

  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. Advertising

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. strong
    Replies:
    0
    Views:
    301
    strong
    Aug 7, 2003
  2. Fabricio Sperandio

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

    Fabricio Sperandio, Apr 6, 2004, in forum: ASP .Net Security
    Replies:
    1
    Views:
    190
    Ken Schaefer
    Apr 6, 2004
  3. Raghu Raman

    Pls Help : WINNT user/Anonymous login error in Webservices ?

    Raghu Raman, Sep 11, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    143
    Raghu Raman
    Sep 11, 2004
  4. A Lake

    Get user details ASP/LDAP/WINNT

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

    How to get winnt login user properties

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

Share This Page