Click here to get back home

Problems with authentication and using alias to the local machine

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problems with authentication and using alias to the local machine Rolando Ramirez 04-27-2006
Posted by Rolando Ramirez on April 27, 2006, 10:22 am
Please log in for more thread options
I'm having trouble with authentication when using aliases in the "hosts"
file (located at C:\WINDOWS\system32\drivers\etc) wich point to "127.0.0.1".

Sql Server:
=======

All of these sentences work:

osql -E -d pubs -Q "select * from authors" -S localhost
osql -E -d pubs -Q "select * from authors" -S 127.0.0.1
osql -E -d pubs -Q "select * from authors" -S [ReplaceWithTheIPAdress]
osql -E -d pubs -Q "select * from authors" -S [ReplaceWithTheDNSName]

but this doesn't work:

osql -E -d pubs -Q "select * from authors" -S [ReplaceWithMyAlias]

it returns "Login failed for user '(null)'. Reason: Not associated with a
trusted SQL Server connection."

I found a workaround which is to register the alias in the "SQL Server
Client Network Utility"



WebSite using NTLM Authentication:
==========================

Loading a page in IE

This two addresses just load the page
http://localhost/MySite/default.aspx
http://[ReplaceWithTheDNSName]/MySite/default.aspx

the next two show a window asking for credentials and after the credentials
are entered the page is loaded
http://127.0.0.1/MySite/default.aspx
http://[ReplaceWithTheIPAdress]/MySite/default.aspx

but the one using the alias shows a window asking for credentials BUT after
the credentials are entered the page is NOT loaded and "unahutorized" error
message is display
http://[ReplaceWithMyAlias]/MySite/default.aspx

the same problem shows up when calling a WebService from a net client
program.


What's going on ? Why aliases to the local machine doesn't work ? I've also
tried creating the alias to the IP address instead of the loopback IP
address with same results.



Similar ThreadsPosted
Kerberos machine authentication - apparent authentication failures May 30, 2005, 10:35 am
Problems With Kerberos Authentication September 25, 2007, 2:33 am
machine authentication for web site? February 21, 2006, 10:09 am
Successful Logon to DC local machine September 11, 2006, 12:31 pm
Changing local admin password on a set of machine in an ad network ? June 6, 2005, 1:28 pm
Local authentication errors on Windows 2003 Server February 23, 2006, 4:56 am
EFS problems January 4, 2007, 2:15 pm
Ca problems February 2, 2007, 3:59 am
pki - certificate problems June 6, 2006, 11:02 am
Problems with a CA restore help... July 5, 2006, 10:58 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap