473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

IIS Intermittent access forbidden

Hi all

I have a strange problem with IIS windows pass through authentication. Heres the setup

IIS running with Windows Authentication for our intranet site. ACL has been set to everyone for all web directories. This is all on a windows 2003 server. We add the intranet site to the intranet zone so the windows credentials will automatically get passed to IIS

90% of the time it works fine, but Intermittently we get access forbidden - usually having a WINXP PRO client. Remove the intranet web site from zone, reboot client, add intranet back to intranet zone and pass through credentials works fine. Anyone else come across this behaviour

Pete.
Nov 18 '05 #1
8 5021
Hi Pete,

When the "unable to auto perform windows integrated authenticaiton"
behavior occurs on the XP client again, please test local access to
the site from your IIS6 server with the same sitename(is it
machinename or FQDN or a registered DNS name?) and localhost. If
either of them doesn't prompt for username/password, the integrated
authentication should work OK and the issue is most likely on why
XP's IE no longer sends credential to finish auth with IIS
automantically.

Then please open the XP box's registry and check the zone setting
under following key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Internet
Settings\ZoneMap\Domains
See if the site is at there and its http attribute is still set to 1
(Local Intranet Zone). I noticed we can use a domain group policy to
overwrite local IE's security zone setting but not sure if it applies
to your situation. Here is the detailed reference on IE zone registry:

Description of Internet Explorer security zones registry entries
http://support.microsoft.com/?id=182569

The following article lists some general reasons of IE prompts with
integrated auth:
Internet Explorer May Prompt You for a Password
http://support.microsoft.com/?id=258063

Looking forward to your findings.
Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security

Nov 18 '05 #2
WenJun

Thanks for your reply. The server hosting the intranet has the following IIS setup

This might be a little odd, but its due to the .Net installer routines only installing to the default site.....

Default Site - Stopped - has a virtual directory (physical in Inetpub) that hosts our intranet
Intranet Web Site - Running - has virtual directory that points to same physical (physical in Inetpub) as abov

To access the intranet we have an internal DNS for www.intranet.info, this points the IIS servers IP Address and the intranet web site (above) has a host header of www.intranet.inf

When the forbidden problem is apparent, it does seem to be passing some form of credentials automatically to IIS, ie. It doesn't prompt for login information. But my guess is that the problem is client side and not IIS related as when the problem is apparent it seems to only effect one or two users, but everyone else is OK. Restart the clients that have the problem etc. and authentication works fine - this is the basis for me believing this is a client issue and not IIS

The next time the problem is apparent, I will check the registry setting etc. as per your reply, but I would appreciate it if you could clarify the following from your reply

Let me see if I understand your last mail. If we get the 'forbidden' problem, you want me to access the intranet site directly from the hosting machine that is running IIS via Internet Explorer or browse directly from IIS (right click browse) or am I missing the point completely

Thanks in advance, Pete

Nov 18 '05 #3
"Let me see if I understand your last mail. If we get the 'forbidden'
problem, you want me to access the intranet site directly from the
hosting machine that is running IIS via Internet Explorer or browse
directly from IIS (right click browse) or am I missing the point
completely?"

[WenJun]
Yes, this is in order to verify if IIS Integrated auth doesn't work
at that time. According to your new statement - "everyone else is OK.
", I believe this is no longer necessary.

A important point in your new thread is you are using host header
like: www.intranet.info. Integrated auth acutally includes two logon
methods - Kerberos and NTLM. When authorization section in request
header is Negotiate (by default), IE and IIS may either choose NTLM
or Kerberos in the end and the one can be affected by host header is
Kerberos. The following KB article contains some related information
of this topic:

Authentication may fail with "401.3" Error if Web site's "Host
Header" differs from server's NetBIOS name
http://support.microsoft.com/default...b;EN-US;294382

I wonder what the detailed error message is in the XP user's browser?
Is it just a 401.x error or 403.x forbidden? it can be helpful if
you can paste the error for me to take a look. If the error is just
401.x, per the KB states, you can set the NTAuthenticationProviders
metabase attribute to enforce IIS using NTLM. Please note using
iisreset command to restart IIS is necessary after this change.

cscript adsutil.vbs set w3svc/NTAuthenticationProviders "NTLM"

Let me know if the problem persists.
Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security

Nov 18 '05 #4
Hi Pete,

Just want to know if you have got any progress on this issue?

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security

Nov 18 '05 #5
You are welcome. : )

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security

Nov 18 '05 #6
Hi WenJun

Well finally I got the access forbidden error on my XP machine (only XP clients seem to have this intermittent issue)
Shows how intermittent the problem is

First of all the error is a 403 and here is the error message
Forbidde
You don't have permission to access / on this server
-------------------------------------------------------------------------------
Apache/2.0.47 (Unix) Server at www.intranet.info Port 8

I did as you asked and tried to browse to the default page from the hosting machine with my credentials and all seemed OK.
On my client that is experiencing the problem, if I then remove www.intranet.info from trusted intranet sites, close the browser, reopen another instance of IE, navigate to the site and I get the 403 without asking for credentials. Reboot the client and access to the site is OK

Any ideas

Pete
Nov 18 '05 #7
Carcked it. Although not quite sure why? It just dawned on me that the access forbidden is comming back from a Unix Apache server not IIS

For some reason our internal DNS lookup for www.intranet.info times out and then hits the internet to resolve the address. Then it hits a valid site address with unix servers. Ping showed the external IP addresses. Why the internal DNS lookkup should time out intermittently I dont know, I need to investigate more. Come to think of it why would rebooting the client resolve the issue sometimes. Very odd

Thanks for your involvement. Off to do some digging
Pete.
Nov 18 '05 #8
Forbidden
You don't have permission to access / on this server.
----------------------------------------------------------------------
----------
Apache/2.0.47 (Unix) Server at www.intranet.info Port 80

Unbelievable the error is from an Apache server and the root cause is
on DNS resolution..
glad to see 'www.intranet.info' is also an Internet site.. :-)

You are always welcome.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security

Nov 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Layne L via DotNetMonster.com | last post by:
Trying to install a .NET application on a Windows 2003 Server ( .NET v1.1) and for any . aspx file get the following error: 403.1 Forbidden: Execute Access Forbidden The application has...
22
by: TC | last post by:
I have an Access database application with a lot of custom row functions written in VBA. In other words, a lot of queries contain calculated fields which use functions defined in the modules. I...
1
by: DotNetter | last post by:
I have two computers. Both computers have Windows 2003 installed as well as Visual Studio.Net 2003 installed. Computer A has active directory set and also has .Net and the webservice called...
3
by: Lee Chapman | last post by:
Hi, I have a problem where my ASP.NET application occasionally generates a MissingFieldException exception. This unexpectedly happened on my development box, and so I was able to extract some...
3
by: JerryK | last post by:
Hi, I have an ASP.net page, written in VB.net. In that code I want to access a validator web services that is secured via SSL. I have installed the certificate, via a .pfx file, on the system....
2
by: Edward Low | last post by:
Hi all, When creating a virtual directory in IIS 5.0 win xp Pro with the name like "abc.com", an error HTTP 403.1 Forbidden: Execute Access Forbidden will return when accessing the web page. But,...
1
by: PK9 | last post by:
I am receiving the following error in Visual Studio 2003: "the web server reported the following error when attempting to create or open the web project HTTP/1.1 403 Access Forbidden" I am...
8
by: Dave | last post by:
I am getting an intermittent database error on my asp page. I am using Access 2003 with classic ASP. The error is this: Microsoft JET Database Engine Error 80040e10 No value given for one or...
1
by: Mark Sandfox | last post by:
I have a need to allow an extrenal IT department to download 1 specific database. I have treid direct link and webclient methods but both get permission errors. Setting the MIME to handle this...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.