PC Review


Reply
Thread Tools Rate Thread

different values by changing server

 
 
Thomas Weiler
Guest
Posts: n/a
 
      17th Mar 2008
Hello,

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

Request.ServerVariables["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\MillerSte . 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.
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      17th Mar 2008
Is not it much easier to take care of domain name in the code? Something
like this (not checked):

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


--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Thomas Weiler" <(E-Mail Removed)> wrote in message
news:47de31ac$0$6738$(E-Mail Removed)...
> Hello,
>
> I have a C# Application that runs on a IIS6. On the first machine I get
> with the command:
>
> Request.ServerVariables["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\MillerSte . 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.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent query from changing number values to text values Renraf Microsoft Access Queries 6 9th Dec 2009 04:21 PM
Changing values in column 1 and 2 based on values in col 3 & 7 sonali Microsoft Excel Programming 1 29th Apr 2008 07:51 AM
Fill-Method changing DBNULL-values to other values Christopher Microsoft ADO .NET 4 18th Jan 2007 10:53 AM
changing values in one column based on values in another? QuickLearner Microsoft Excel Programming 1 10th Jul 2006 04:18 PM
Re: Changing negative values to positive values Cheryl Fischer Microsoft Access 0 1st Mar 2004 03:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:06 PM.