Change domain when authenticating with IE8 - windows

When I try to login to our WSS demo site the authentication popup forces me to use the domain I'm currently using on my local computer. The WSS site does not have the same domain.
I'm running IE8 on Windows 7. How do I change the domain!?

One of my collegues helped me and now I feel like an idiot!
In IE8 the authentication popup first wants you to login as your domain user but you also have the choice to "Use another account". When clicking that choice your local domain is displayed below the texbox like "Domain: LOCALDOMAIN". And when you start typing "MYDOMAIN\xyz" in the username box it changes to "Domain: MYDOMAIN"!
Simple as that!
You will have to type the domain name in ALL CAPITALS, otherwise it does not take it

Posting this answer in case others stumble upon the same search with the same problem.
If you have an Azure VM and you did not establish a domain for the VM but the Windows Security popup is defaulting to your Windows Authentication credentials. You can omit the domain by using
"...\[yourLoginName]"
where [yourLoginName] is the VM username that you initially setup in Azure.

Related

Azure Portal Login automatically uses Windows Account

In Internet Explorer, when I go to any site that is authenticated via Azure AD, the login page automatically chooses to log me in with my Windows Account. This functionality would typically be great, but I need to use different credentials (my clients).
How can tell IE to NOT automatically log me into Azure AD with my windows credentials?
When I use any different browser, the expected functionality exists and I am prompted to enter the login credentials I want. Also, the solution can not be "just use a different browser". Client uses IE for everything and won't allow users to install different browsers.
I am running Windows 10.
Thanks in advance
Opening IE InPrivate window should allow you to login with any user you need.
Use Ctrl+Shift+P or Settings Icon->Safety->InPrivate Browsing.

logged in username on a web app incorrect when site live

I've got a web app that runs on a machine and should only be used if a particular user is logged on to that machine. so in page_load I have the following code:
dim sName as string = System.Windows.Forms.SystemInformation.UserName
if sName <> 'sstation' then
Response.Direct("NoAccess.aspx")
end if
this works perfectly when I am in Visual Studio debugging, if I am logged on to the computer as sstation, the page loads up, if not it loads the NoAccess page. However, if I open the page in a web browser, it always takes me to the NoAccess page and I can't figure out why! Any ideas
I've added a text box to the page and added this code:
lblErrorMessage.Text = "You are logged in as " + sADname
and the name comes up as Administrator even though I am logged on to the machine as sstation, so where does System.Windows.Forms.SystemInformation.UserName come from when the page is on a server?
This code is running on the web server, NOT the machine that the user is logged in to. It will return the user account that IIS is running as. The reason it works on your local machine when debugging is that the web server is running on your local machine in that case. This account can be configured in the App Pool that the IIS site is set to use. See this link for more information on configuring it.
In order to get the user account of the client machine in IIS, IIS will have to be configured for Windows authentication, and both the client and server will most likely need to be part of a Domain. If that isn't possible you will need to use some other kind of authentication, the easiest being Forms authentication, or ASP.NET Identity.
Here are some links to get you started.
ASP.NET Identity
Forms Authentication
Windows Authentication

Website access with cached Windows credentials

I am working at a company which uses an intranet site as a portal to a bunch of other local sites. Unauthorized people in the company have been accessing it, so we want to secure it. Users, when accessing the website for the first time will have to enter a username and password. If they are on a certain group in the Active Directory, they will be given access and their credentials will be stored so that they don't need to enter their username/password again. I have looked into NTML, ASP.NET, but am not sure how to proceed.
Any thoughts/ideas are greatly appreciated.
Dump your solution. Use Integrated Windows Authentication, namely Kerberos, in IIS. It will automatically pass all credenentials to your server. Note that every participant must be part of your AD domain.

When accessing localhost IIS asks for username and password

I have installed IIS on Windows XP SP3. When I want to access localhost from my browser the authentication window appears and asks for user name and password. Anonymous access is enabled for IUSR_ user and this user has full control permission on wwwroot folder. Any help is appreciated in advance.
You've set your web site up to use Integrated Windows (NTLM) Authentication, which is supported by default in IE but not in Firefox. Firefox requires you to permit NTLM on a site-by-site basis.
This page explains how to enable NTLM and remove the login boxes in Firefox.
Basically, you need to type about:config in the address bar and add the hostname to the list of comma-separated values on the network.automatic-ntlm-auth.trusted-uris setting.
Let's say you have two sites that you want to enable NTLM authentication on: http://www.foo.com/ and http://www.bar.com/. You would need to set network.automatic-ntlm-auth.trusted-uris to www.foo.com, www.bar.com.
If you want your site to be accessible to anonymous users, you need to make sure that your IUSR_xxx account has at least read permission to the files that your web site is serving at the file system level. You can do this via Windows Explorer. I think you also need to grant list permission on the parent directories.

Domain A record

i've just added an A record for a domain to point to an ip address relating to another website which resides under a different domain - i own both domains and website.
the A record works in that if i enter the domain it goes to the correct ip address - however in safari and IE a dialog box pops up asking to enter username/password (specifically in safari it says "To view this page, you must log in to area X for site X:80") and there should be no logon - if you cancel you don't see the website and as i have no logon i can't see the website.
if i enter the websites original domain there is no prompt and works fine - if i enter the ip address directly in the browser it also asks for login.
the website (static pages) is hosted by fasthosts and doesn't appear to have any security settings around it or that can be set.
anyone know why one domain works and the other domain and ip address result in logon dialog ?
thanks
adam
Your problem is not related to DNS, but rather to web server configuration. Specifically to configuration of name-based virtual hosting.

Resources