473,626 Members | 3,936 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Delegation fails after inactivity

We are currently using impersonation with constrained delegation to run a
dual server environment for ASP.NET 2.0 and SQL Server 2005.

Everything is up and running great, however, we have the following issue and
are not sure where to look.

If a user is logged into our Application Server and is inactive for a
certain amount of time (to be determined) the connection to the Application
Server is still authenticated because it will serve additional page requests
(also Anonymous is disabled), however, when those additional requests
attempt to access the database they fail due to Login failed for user 'NT
AUTHORITY\ANONY MOUS LOGON'.

So it appears the ticket some how no longer delegates to the Database
server.

If anyone has some direction or references to help track this down it would
be greatly appreciated
(Troubleshootin g Kerberos Delegation doesn't help because everything works
as long as the user does not go idle).

TIA,
- Marc Castrechini
Jan 24 '07 #1
5 1156
Hi Marc,

Does this issue occur when there's no user logged into the App Server?
Also, is your server fully patched?

I'll do some consulting for your issue and get back to you later.

Sincerely,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.
Jan 25 '07 #2
Thanks for the feedback.

1) Yes our servers are fully patched.

2) I am not sure I understand your question regarding "no user logged into
the App Server".

I may not have been clear that this application is strictly part of our
Intranet. We are using only Windows Authentication for our IIS
applications. All ASP.NET applications are set for Impersonation=" True".
The SQL Server is using strictly Windows Authentication as well.

Also, we have found some additional information that may help:
When the App Server stops delegating to the DB Server ...

1) Repeated attempts in the application using the same browser eventually
starts working thus properly delegating the user to the DB Server

2) If the browser is closed and then another instance in re-opened sometimes
the delegation still does NOT work properly and credentials are not passed.
- Same as 1, eventually it will start delegating properly.

If I can provide a better answer regarding "No user logged into the app
server" question please let me know.

- Marc

"Walter Wang [MSFT]" <wa****@online. microsoft.comwr ote in message
news:BZ******** ******@TK2MSFTN GHUB02.phx.gbl. ..
Hi Marc,

Does this issue occur when there's no user logged into the App Server?
Also, is your server fully patched?

I'll do some consulting for your issue and get back to you later.

Sincerely,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your
reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no
rights.


Jan 25 '07 #3
Further more ... Audit logging on the DB server shows these when the error
occurs:

Supporting the theory that the Kerberos authentication at the Application
server is downgrading to NTLM. Why, how or when does Kerberson downgrade to
NTLM?

Successful Network Logon:
User Name:
Domain:
Logon ID: (0x0,0x4E586A8)
Logon Type: 3
Logon Process: NtLmSsp
Authentication Package: NTLM
Workstation Name: MW-APP1
Logon GUID: -
Caller User Name: -
Caller Domain: -
Caller Logon ID: -
Caller Process ID: -
Transited Services: -
Source Network Address: -
Source Port: -

User Logoff:
User Name: ANONYMOUS LOGON
Domain: NT AUTHORITY
Logon ID: (0x0,0x4E586A8)
Logon Type: 3

Also, one potential factor: We access our application via c-name with non
standard port.

Server: MW-APP1
URL: http://OpsCenter:8082/AppName/Default.aspx

TIA for any help whatsoever.

- Marc

"Marc Castrechini" <ca******@newsg roup.nospamwrot e in message
news:ew******** ******@TK2MSFTN GP03.phx.gbl...
Thanks for the feedback.

1) Yes our servers are fully patched.

2) I am not sure I understand your question regarding "no user logged into
the App Server".

I may not have been clear that this application is strictly part of our
Intranet. We are using only Windows Authentication for our IIS
applications. All ASP.NET applications are set for Impersonation=" True".
The SQL Server is using strictly Windows Authentication as well.

Also, we have found some additional information that may help:
When the App Server stops delegating to the DB Server ...

1) Repeated attempts in the application using the same browser eventually
starts working thus properly delegating the user to the DB Server

2) If the browser is closed and then another instance in re-opened
sometimes the delegation still does NOT work properly and credentials are
not passed.
- Same as 1, eventually it will start delegating properly.

If I can provide a better answer regarding "No user logged into the app
server" question please let me know.

- Marc

"Walter Wang [MSFT]" <wa****@online. microsoft.comwr ote in message
news:BZ******** ******@TK2MSFTN GHUB02.phx.gbl. ..
>Hi Marc,

Does this issue occur when there's no user logged into the App Server?
Also, is your server fully patched?

I'll do some consulting for your issue and get back to you later.

Sincerely,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support

============== =============== =============== ======
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications. If you are using Outlook Express, please make sure you clear
the
check box "Tools/Options/Read: Get 300 headers at a time" to see your
reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each
follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
============== =============== =============== ======

This posting is provided "AS IS" with no warranties, and confers no
rights.



Jan 25 '07 #4
Hi Marc,

Following blog might be helpful:

#alik levin's : SOA, Kerberos, IIS, and Security Best Practices
http://blogs.microsoft.co.il/blogs/a...A_2C00_-Kerber
os_2C00_-IIS_2C00_-and-Security-Best-Practices.aspx
To fully troubleshoot such issue, it might need to monitor/trace the
network packets between the servers. I've searched in our internal support
database, but failed to find similar cases to your issue.

I'm not sure if following KB is relevant for your scenario:

#Installing security update MS05-019 or Windows Server 2003 Service Pack 1
may cause network connectivity between clients and servers to fail
http://support.microsoft.com/kb/898060/en-us
I'm afraid you might have to contact Microsoft Product Support and Service
for further help.

Regards,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 26 '07 #5
2) I am not sure I understand your question regarding "no user logged
into
the App Server".

My mistake, please ignore that question. That day I was also looking into
following similar issue to yours:

http://msdn.microsoft.com/newsgroups...icrosoft.publi
c.dotnet.framew ork.aspnet.webs ervices&mid=41d e9944-ef69-4069-932b-2acd2ecadb
78&sloc=en-us&p=1

It seems this post owner also has similiar symptom to yours and he
mentioned that the issue is gone when the user logs out and logs back. I
also just realized he should be referring to the client workstation instead
of the application server.

Regards,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 29 '07 #6

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

Similar topics

7
3267
by: Rene Pijlman | last post by:
Section 6.5 "What is delegation?" of the FAQ says: "Python programmers can easily implement delegation. For example, the following class implements a class that behaves like a file but converts all written data to uppercase: class UpperOut: def __init__(self, outfile): self.__outfile = outfile def write(self, s):
1
1146
by: jm | last post by:
I promise. I have tried everything I could find. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT05.asp (and much more) I have an asp (not .net) page on a server which is not a domain controller (2003 server in a 2000 forest). The asp page on the server hits a database on another server. For whatever reason, I either get invalid path when I use a DSN or opened exclusively or permission
0
3194
by: kkos | last post by:
I noticed the following issue posted as a double-hop issue in many discussion boards but found no answers that explain how to pass the second hop with windows auth from IIS ASPX page to remote SQL Server. Problem: -------------- I am trying to create an asp.net website with integrated windows authentication to access SQL databases. IIS resides on WinXP and SQL Server on Win2000 SRV. Both are in the same NT Domain. IIS and SQL Server...
0
1499
by: titojermaine | last post by:
The problem is that after reducing MSDTC security to "No Authentication", it mostly seems to work correctly, except that after a brief period of inactivity (a few minutes), the first attempt to use DTC fails, but subsequent attempts are successful, until inactivity again. The original environment was a single machine with SQL Server installed and a service on another machine that would connect to the same SQL Server but utilizing different...
0
8266
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...
1
8365
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
7196
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
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
5574
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
4092
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2626
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
1
1811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.