all groups > iis security > september 2004 >
You're in the

iis security

group:

Standalone IIS Server prompts for authentication when using Domain Anon User Acct


Standalone IIS Server prompts for authentication when using Domain Anon User Acct ihaveblint NO[at]SPAM gmail.com
9/30/2004 8:07:15 AM
iis security:
Hello all,

I'm having some trouble with getting my IIS server working
correctly with anonymous users. Current we have an IIS server sitting
in the DMZ that is not part of the internal Windows domain which needs
to access Active Directory. To gain access to Active Diretory I've
changed the Anonymous User Account under IIS to a domain account.
However this causes one to be prompted to authenticate as soon as you
try to access the website on the IIS server. For testing purposes I
added the IIS server to the same domain that it would be accessing and
I no longer got prompted to authenticate when accessing the website.
This isn't a NTFS permission problem as far as I can tell since the
web application resides in a directory giving Everybody permission to
access it. I read that Log on Locally might be necessary, but after
giving the domain account (the same that IIS is running as) permission
to logon locally I still get prompted for authentication.

The desired result is for the standalone IIS server to have access
to Active Directory without needing any type of authentication by the
user other than at the application level.

Any ideas on what could be causing anonymous users being prompted
for Windows authentication?


Re: Standalone IIS Server prompts for authentication when using Domain Anon User Acct Miha Pihler
9/30/2004 6:17:00 PM
Hi Miguel,

Can you explain a bit more? Is this server member of domain or not? If it is
a member of domain, did you open necessary TCP and UDP ports between your
IIS server in DMZ and your active directory? Did you change DNS
configuration (under TCP/IP properties) in IIS server so that it point to
your active directory DNS?

In user authentication prompt did you try entering

domain_name\username

where domain_name is NetBIOS name of your domain and
username is account created in your domain.

Mike

[quoted text, click to view]

Re: Standalone IIS Server prompts for authentication when using Domain Anon User Acct ihaveblint NO[at]SPAM gmail.com
10/1/2004 6:15:41 AM
Hi Miha,

The IIS server is not part of a domain. For testing purposes I made
an exception and allowed all traffic from this IIS server to all DCs
to see if this was a firewall issue however that still didn't work. As
mentioned, I only get prompted for Windows Authentication when the IIS
server is not a member of the domain, however if part of the domain
one no longer gets prompted. This alone should rule out any
firewall/network level issues.
The problem isn't that I'm failing to authenticate when prompted,
but rather why I'm being asked to authenticate at all as an anonymous
user. I realize some would wonder why I don't keep my IIS server in
the Domain - I prefer to keep my DMZ servers standalone.

Thanks for your assistance,

Miguel


[quoted text, click to view]
Re: Standalone IIS Server prompts for authentication when using Domain Anon User Acct Bernard
10/2/2004 11:12:44 AM
In this case, ensure that the anonymous account has at least READ NTFS
permission on the resource.
check the log file for more clue.

--
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/



[quoted text, click to view]

Re: Standalone IIS Server prompts for authentication when using Domain Anon User Acct Roger Abell [MVP]
10/2/2004 5:06:06 PM
I believe that what is confusing us is that you say you have
the machine standalone, not in the domain, and then you
define IIS to use a domain account. This is a contradiction.
No domain accounts are available if not in a domain.

--
Roger Abell
Microsoft MVP (Windows Server System: Security)
MCDBA, MCSE W2k3+W2k+Nt4
[quoted text, click to view]

Re: Standalone IIS Server prompts for authentication when using Domain Anon User Acct ihaveblint NO[at]SPAM gmail.com
10/4/2004 11:01:50 AM
Hi Roger,

yes that might be confusing. Even though I can't browse the domain
accounts I manually entered the domain account information into the
Anonymous User Account input box. A domain does exist, its just the
IIS server is not part of this domain. I know that it is using the
domain account because after authenticating through the Windows
Authentication window that pops up the rest of the application works
correctly. My problem is why does a Windows Authentication window come
up in the first place?

I'm probably not explaining myself very clearly. Here is a post
that my coworker sent to someone who appeared to have dealt with a
similar problem.

========================

When I access the web site (remotely) from IE, I receive the "Enter
Network Password" dialog box prior to accessing my login.aspx page.

The reason for this is because the "Anonymous User Account"
IUSR_<servername> is no longer there. Currently a user id (on an
active directory machine) is added, who has active directory
administrative rights.

Since the AD user has no rights on the standalone machine,
How am I able to access this standalone web server without
authenticating to it first?

I would really appreciate your help
Thanks in advance
Rob

=========================




Thanks,

Miguel

[quoted text, click to view]
Re: Standalone IIS Server prompts for authentication when using Domain Anon User Acct Bernard
10/5/2004 10:21:50 AM
Now, I know what you talkin about...
If the standalone server doesn't belong to a Domain, how do you expect it
know where to authenticate the user ?


--
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/



[quoted text, click to view]

Re: Standalone IIS Server prompts for authentication when using Domain Anon User Acct ihaveblint NO[at]SPAM gmail.com
10/5/2004 12:32:09 PM
Hi Bernard,

What if I explicitly say user@domain.com and provide the correct
password for that Domain account? Can't it go off do a lookup on
domain.com find the IP addresses of the Active Directory servers
(using an internal dns server) and then authenticate against those
servers? On a regular basis I will go and access a share on our
fileserver from a standalone PC that I'm building, and get prompted
for Domain credentials. Upon entering the credentials everything
continues along just fine even though the machine I'm accessing the
share from isn't part of the Domain.

Thanks,

Miguel




[quoted text, click to view]
Re: Standalone IIS Server prompts for authentication when using Domain Anon User Acct Bernard
10/6/2004 12:05:25 PM
I don't think this is possible :(

when you try to access the filesvr, you are authentication yourself to the
DC of the domain. In the IIS case, a user access the site anonymously and
you 'expect' the 'domain account' you specified will know which DC to talk
to and etc, I don't think this work the same way as the way you access your
filesvr. IIS will not know where to contact the DC, and you can't specify
any domain accounts in your file ACLs


--
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/



[quoted text, click to view]

AddThis Social Bookmark Button