different values by changing server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thomas Weiler

    different values by changing server

    Hello,

    I have a C# Application that runs on a IIS6. On the first machine I get
    with the command:

    Request.ServerV ariables["AUTH_USER"]

    the authorized user like MillerSte.

    Now I put the hole application to another machine with the same System
    (Windows 2003 Server) and also IIS. On the new machine I now get the
    result: mydomain\Miller Ste . For some reason the web server put the
    domain name in this variable.

    Can someone tell me where I can change this setting, so that the domain
    name will not by shown in this variable like on the first machine?

    Thanks for all answers.
  • Eliyahu Goldin

    #2
    Re: different values by changing server

    Is not it much easier to take care of domain name in the code? Something
    like this (not checked):

    string ss = Request.ServerV ariables["AUTH_USER"];
    string noDomainName = ss.Replace (ss.Substring(0 , ss.LastIndexOf( "\\") +1),
    String.Empty);


    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]




    "Thomas Weiler" <T.Weiler@web.d ewrote in message
    news:47de31ac$0 $6738$9b4e6d93@ newsspool3.arco r-online.net...
    Hello,
    >
    I have a C# Application that runs on a IIS6. On the first machine I get
    with the command:
    >
    Request.ServerV ariables["AUTH_USER"]
    >
    the authorized user like MillerSte.
    >
    Now I put the hole application to another machine with the same System
    (Windows 2003 Server) and also IIS. On the new machine I now get the
    result: mydomain\Miller Ste . For some reason the web server put the domain
    name in this variable.
    >
    Can someone tell me where I can change this setting, so that the domain
    name will not by shown in this variable like on the first machine?
    >
    Thanks for all answers.

    Comment

    Working...