Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

Wrong Domain Appearing in LOGON_USER

This is probably a really easy fix, but I can't seem to find it.

We have a web server setup at work.  I've set it to use Integrated Windows authentication, and disabled all the rest (i.e. Anonymous, Basic, and Digest).

To test the authentication, I wrote a basic ASP.NET application that just says:

Response.Write("You are authenticated as: " + Context.User.Identity.Name);

The problem is, I'm authenticated on COMPANYDOMAIN.  But the web application is outputting:

"You are authenticated as WEBSERVERNAME\jshantz"

What am I doing wrong?  I don't want to enable Basic or Digest (which allow you to specify a default domain), so how I can I get the server to authenticate based on COMPANYDOMAIN accounts, and not WEBSERVERNAME accounts?  The weird thing is that it doesn't ask me for a username/password or anything, so it's obviously accepting my existing network credentials (from being authenticated already with COMPANYDOMAIN), but still it prints WEBSERVERNAME as the domain.  
0
jshantz4
Asked:
jshantz4
  • 4
  • 3
1 Solution
 
muzzy2003Commented:
Have you tried using HttpContext? I think you should be using this not Context. Don't know if it'll sort the problem out as well, but try it first and then let us know if it makes a difference, then we can move on from there.
0
 
jshantz4Author Commented:
Page.Context is of type HttpContext, but I tested your suggestion anyhow: same deal.  Thanks for the reply.
0
 
muzzy2003Commented:
Sorry - of course, it's Page.Context not the Context class directly. Need more caffeine ...

Just as a matter of interest, is there a local machine user account named jshantz as well as the domain one?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
jshantz4Author Commented:
There is, but I've tried authenticating on my network with a user that is not created locally on the web server, and it just gives me an authentication popup, but does not allow me to authenticate.

What's strange is that if I enable Basic Authentication, and click the Edit button to select a default domain, if I click on Browse and view the entire network *I don't even see my COMPANYDOMAIN* listed.  It's on the network, I can certainly access the web server, but for some reason, the web server won't recognize COMPANYDOMAIN.  So that throws another bit of confusion into the loop.

Any ideas would be appreciated.
0
 
muzzy2003Commented:
Is your existing web server a member of COMPANYDOMAIN, of no domain, or of another domain? If the last, do you know what trust relationships exist?
0
 
muzzy2003Commented:
Also, are your passwords in synch between the COMPANYDOMAIN\jshantz and WEBSERVER\jshantz accounts?
0
 
meverestCommented:
You might like to try posting this question also in the ASP and .NET topic areas.

cheers.
0
 
jshantz4Author Commented:
The problem turned out to be that the web server wasn't a member of the domain.  I had previously thought that it was, but it turns out I was incorrect.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now