473,756 Members | 2,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS Remote Content and Kerberos Delegation

Hello All,
I am trying to serve out some content via IIS that is hosted on a
remote fileserver, and am unable to get the delegation working
correctly. Our setup is as follows:

Local LAN
Windows 2000 domain (mixed-mode): MYDOMAIN (mydomain.net)
Windows 2003 Server w/IIS6: WEB01
Windows 2000 Server hosting files: FILE01
Windows XP Pro client workstation: CLIENT01

All computers are members of the domain. WEB01 is 'Trusted for
Delegation'.

Two domain users have been created:

MYDOMAIN\joeuse r
MYDOMAIN\webdir map

Both are member of the Domain Users group only.

Single web setup on WEB01, Active Directory DNS host record
'test.dev.mydom ain.net' pointing to this web. The website has no
local content, and a single virtual directory called 'webtest' which
is pointing to a share on FILE01 called '\\FILE01\webte st'. The web
is set to use Windows Integrated Auth only, no Basic or Anonymous
allowed.

Both domain users have Read & Exec NTFS permissions to
\\FILE01\webtes t. The SMB permissions on this share are set to
Everyone - Full Control. This share contains a single image file
called 'shite.gif'.

For my testing I'm sitting at CLIENT01 and attempting to browse to
http://test.dev.mydomain.net/webtest/shite.gif using IE 6.0SP1.
1) First I set the '\webtest' virtual dir to use a fixed set of
credentials, connecting as 'MYDOMAIN\webdi rmap'. I then browsed to the
above URL, authenticating as 'MYDOMAIN\joeus er'. I was able to view
the image with no problems, and the event log on WEB01 showed me
authenticating using Kerberos as 'MYDOMAIN\joeus er'. The eventlog on
FILE01 showed a successful Logon event (using Kerberos for both logon
and auth packages) for 'MYDOMAIN\webdi rmap', followed by a successful
object access for 'shite.gif'. All good...

2) Then I changed the '\webtest' virtual dir to use passthrough
authentication, connecting as the authenticated user accessing the
website. I browsed to the URL again (after closing the browser to
clear the cache first). I immediately got a userid/password challenge
dialog, into which I entered the credentials for 'MYDOMAIN\joeus er'.
They weren't accepted and I was challenged 3 times in total before IIS
finally came back with an 'HTTP 401.3 - Unauthorized: Access is denied
due to an ACL set on the requested resource' error. The event logs on
WEB01 looked OK, with a Kerberos logon as 'MYDOMAIN\joeus er'. The
FILE01 event log however showed two event, repeated 3 times in quick
succession (once per failed challenge I guess): a successful
Privilege Use (Special privileges assigned to new logon:
SeChangeNotifyP rivilege) for 'NT AUTHORITY\ANONY MOUS LOGON', followed
by a successful Logoff event for the same user (logon type 3). No
successful logons at all, nor any audit failures of any kind.

I'm logging both success and failures for Object Access, Logon/Logoff,
Account Logon and Privelege Use.

Can anyone explain this to me? Why is the connection from WEB01 to
FILE01 coming through as 'NT AUTHORITY\ANONY MOUS LOGON'? It should be
coming through as 'MYDOMAIN\joeus er' if Kerberos delegation was
working shouldn't it?

To double-check I switched the web to use Basic auth rather than
Windows Integrated. It worked fine with both fixed 'connect as'
credentials (MYDOMAIN\webdi rmap) and with passthrough, so I'm thinking
it's Kerberos at fault...

I've read all of the pertinet TechNet articles I could find, including
the very informative
http://www.microsoft.com/technet/pro.../remstorg.mspx
but stil have no joy making this work. Suggestions anyone?

Thanks!

Jacob Luebbers
Jul 19 '05 #1
3 5254
I think your issue has to do with lack of tokens based on your authenticion.
(I'm not expert at this stuff though.)

Read these two interesting articles and make sure that you're using an
authentication method that will send kerberos tokens.

http://support.microsoft.com/?kbid=287537
http://support.microsoft.com/?kbid=264921

Ray at work

"Jacob" <ja****@globalk nowledgeconsult ants.com> wrote in message
news:23******** *************** ***@posting.goo gle.com...
Hello All,
I am trying to serve out some content via IIS that is hosted on a
remote fileserver, and am unable to get the delegation working
correctly. Our setup is as follows:

2) Then I changed the '\webtest' virtual dir to use passthrough
authentication, connecting as the authenticated user accessing the
website. I browsed to the URL again (after closing the browser to
clear the cache first). I immediately got a userid/password challenge
dialog, into which I entered the credentials for 'MYDOMAIN\joeus er'.
They weren't accepted and I was challenged 3 times in total before IIS
finally came back with an 'HTTP 401.3 - Unauthorized: Access is denied
due to an ACL set on the requested resource' error.

Jul 19 '05 #2
Thanks Ray,
I've already had a look at those two articles, and whilst they're
useful I still haven't found anything that explains this.

The IIS web is only set to accept Windows Integrated Auth - Basic and
Anonymous are not ticked. This leaves the only question being: which
of the two Integrated Auth 'sub-types' is being used (Kerberos or
NTLM)? I'm almost certain it's Kerberos because the event log shows
this:

---------------------------------------------------------
Event Type: Success Audit
Event Source: Security
Event Category: Logon/Logoff
Event ID: 540
Date: 20/05/2004
Time: 4:37:48 PM
User: MYDOMAIN\joeuse r
Computer: WEB01
Description:
Successful Network Logon:
User Name: joeuser
Domain: MYDOMAIN
Logon ID: (0x0,0x438597E)
Logon Type: 3
Logon Process: Kerberos
Authentication Package: Kerberos
Workstation Name:
Logon GUID: {21188530-3308-bb42-8b30-82c6c8fbb470}
Caller User Name: -
Caller Domain: -
Caller Logon ID: -
Caller Process ID: -
Transited Services: -
Source Network Address: 10.0.0.76
Source Port: 3654
---------------------------------------------------------

If so, Kerberos is able to be delegated (at least SHOULD be able to -
not for me though :-P ), as can Basic. I've already tested and proven
that Basic works, but unfortunately for me Basic is not suitable - I
need to be able to use Integrated Auth.

Now, to confuse things even more...

Further testing reveals that if I first make a connection to some
local content on the IIS web (eg a dummy.asp page which simply
displays 'Hello World'), then DURING THE SAME SESSION, browse to the
remote-served content eg
http://test.dev.mydomain.net/webtest/shite.gif, it works fine!

It seems that if my first browse request during the session is for
remote content I don't yet have a Kerberos ticket, and therefore the
second 'hop' from IIS server --> file server can't be made with
delegated credentials, and so the ANONYMOUS account is used. However
if I first request some locally-served content IIS grants me a
Kerberos ticket which I then am able to subsequently use for the
remote content during the same session.

At least, this is the observed behaviour. Does this make any sense?
Is this the way it's supposed to work?

Regards,

Jacob


"Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in message news:<O1******* *******@TK2MSFT NGP12.phx.gbl>. ..
I think your issue has to do with lack of tokens based on your authenticion.
(I'm not expert at this stuff though.)

Read these two interesting articles and make sure that you're using an
authentication method that will send kerberos tokens.

http://support.microsoft.com/?kbid=287537
http://support.microsoft.com/?kbid=264921

Ray at work

"Jacob" <ja****@globalk nowledgeconsult ants.com> wrote in message
news:23******** *************** ***@posting.goo gle.com...
Hello All,
I am trying to serve out some content via IIS that is hosted on a
remote fileserver, and am unable to get the delegation working
correctly. Our setup is as follows:

2) Then I changed the '\webtest' virtual dir to use passthrough
authentication, connecting as the authenticated user accessing the
website. I browsed to the URL again (after closing the browser to
clear the cache first). I immediately got a userid/password challenge
dialog, into which I entered the credentials for 'MYDOMAIN\joeus er'.
They weren't accepted and I was challenged 3 times in total before IIS
finally came back with an 'HTTP 401.3 - Unauthorized: Access is denied
due to an ACL set on the requested resource' error.

Jul 19 '05 #3

"Jacob" <ja****@globalk nowledgeconsult ants.com> wrote in message
news:23******** *************** ***@posting.goo gle.com...

If so, Kerberos is able to be delegated (at least SHOULD be able to -
not for me though :-P ), as can Basic. I've already tested and proven
that Basic works, but unfortunately for me Basic is not suitable - I
need to be able to use Integrated Auth.


FWIW, I haven't been able to acheive what you're trying to do either. I
have a VERY basic understanding of different authentication methods in
Windows and how they tie into IIS, so I don't really have much else to
offer. :[

Ray at work
Jul 19 '05 #4

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

Similar topics

0
2525
by: Lain | last post by:
Hi all I'm trying to obtain remote client information to present on a web page using WMI. The problem I have is that no matter how hard I try (and how cross-eyed I get from reading doco) I can't seem to get access to the remote client owing to error 800a0046 - which seems to be a General Access Denied (according to related events in the System Event Log). I've tried configuring the virtual directory as a highly isolated application, then...
1
3895
by: POnfri | last post by:
Hi, I have a problem in a peace of code were i'm doing a file copy using File.Copy. The Source is local and the target is a remote machine. Example: File.Copy(C:\temp\hi.txt, \\myremote\c$\temp\hi.txt, true); This API is run from a web service that exposes it. The problem is as follows: 1) I request a page (On the web service machine) from my web server (Note
1
1790
by: Mark | last post by:
Assume: IIS 6.0 and SQL Server 2000 are running on two separate windows 2003 servers on the same LAN and windows domain using Active Directory. All client connections using IE 6.0+ are on the domain. True or false: To avoid sending a username and password from the client pc to the web server while using impersonation to make database calls from our web server to our SQL Server, we would have to use delegation so we could leverage...
2
2898
by: Jon L. Lovesky | last post by:
Hello all, I am attempting to access a remote folder from an asp.net application (all within the same domain). The application is configured for windows authentication in IIS and the asp.net worker process runs as the local ASP.NET account. When the application is about to access the remote folder I switch the security context to the remote user programmatically, then switch it back afterwards. When I run the application on my local...
0
1227
by: Shikari Shambu | last post by:
Hi, I have an ASP.NET application running on IIS 5.0 on win 2k trying to access a web service on win 2k3 to which it tries to pass the kerberos token. I get the following error when I try to do this - The Kerberos credential handle could not be acquired. The AcquireCredentialsHandle call returned the following error code: A specified logon session does not exist. It may already have been terminated.
1
2729
by: russell.lane | last post by:
I've established user login identity impersonation and delegation for a multi-tier web application. I'm running into a case where authentication fails when a user accesses the app from a browser on one machine, but not from another machine. The relevant details -- in both cases, all of the following are in effect: Same user account. Same web application, same IIS host. Client OS is XP Pro SP2.
0
1045
by: scomik | last post by:
Hello, Is Kerberos delegation needed to write a file from a web app to a file server within the same network? If so, I will be setting up constrained delegation. The problem is what is the service on the file server that I will let the web service account use?
2
5145
by: Greg Nash | last post by:
Gday I want to change to use Windows AD-integrated Kerberos authentication, and have changed a server to KRB_SERVER_ENCRYPT for trial. Recataloged the database at a client machine. As far as I can tell, everything is in the right place (and seems to be mostly set up automatically under Windows). Attempting to connect without specifying name/password gives: SQL30082N Attempt to establish connection failed with security reason
2
1692
by: Tapio Kulmala | last post by:
Hi! I've found an interesting problem that might have something to do with Kerberos. I have a www application running in a Windows Server 2003 box. The server did not have SP1 or SP2 installed. Everything was working smoothly. Couple days ago we installed SP2 and weird authentication errors started to occur occasionally.
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9873
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9846
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9713
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7248
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.