Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8178375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:45:04+00:00 2026-06-06T23:45:04+00:00

So I have set up a IIS 7 server with windows authentication, and all

  • 0

So I have set up a IIS 7 server with windows authentication, and all works well. I have an aspx (test page) returning the users name and groups.

Code:

        IIdentity WinId = HttpContext.Current.User.Identity;
        WindowsIdentity wi = (WindowsIdentity)WinId;
        string userDomain = wi.Name.ToString();

the userdomain string returns (example) “DOMAIN/username”

however, I have only one user on my domain (same active directory groups as similar users) but he returns “Server/administrator”. I checked all the groups in security and he doesn’t belong to them. So im out of ideas.

EDIT: See my answer below (figured it out)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:45:05+00:00Added an answer on June 6, 2026 at 11:45 pm

    There are two places storing user accounts, local SAM store and Active Directory.

    If you see “Server\username”, it means you have logon to the machine using an account from local SAM store.

    If you see “Domain\username”, it means you have logon to the machine using an account from Active Directory

    The confusion usually comes up when you have a local user account with the same user name as a domain user account. The built-in account “administrator” is usually one of the most common accounts causing this confusion.

    In order to make sure you logon using a domain account but not a local user account, you can specify fully qualified name at the logon time. e.g. Domain\Administrator or Server\Administartor

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Django set up under Windows (Win2008 Server R2, IIS 7.5, MS SQL).
We have windows authentication set up on our staging server for our clients to
I have a web application set up on our intranet that uses windows authentication
I have an ASP.NET website set up using Windows authentication. Each time I open
i have published asp.net mvc application on iis 6 on the server(windows server 2003)
I'm developing an ASP.NET application which needs Windows Authentication. I have the web.config set
I have an asp.net application in IIS 5.0(windows 2000 server), my application is working
I have set up SQL Server 2008 R2 on a Windows Server 2008 machine
I'm running PHP 5.2.6 on a Windows Server 2003 Enterprise box. IIS is set
I have a server set up with IIS, and my site has some pages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.