There is a time and/or date difference between the client and server.



Here's an error i get. I have IIS6 and Sql Server 2000 on different
machines both running wk2003. I'm using Intergrated Windows
Authentication. here's an error Id get.


System.Security.SecurityException: There is a time and/or date
difference between the client and server.

at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String
upn)
at System.Security.Principal.WindowsIdentity..ctor(String
sUserPrincipalName, String type)
at System.Security.Principal.WindowsIdentity..ctor(String
sUserPrincipalName)
at Mckinstry.HumanResources.PersonnelInformation..ctor(String
NetworkLogin) in C:\Documents and Settings\marvinm\My Documents\Visual
Studio 2005\Projects\HumanResources\PersonnelInformation.cs:line 26
at HumanResourcesService..ctor()




Here is a piece of code i use to pass the orginal caller token to the
datbase server.


int slash = NetworkLogin.IndexOf("\\");
if (slash > 0)
{
string domain = NetworkLogin.Substring(0, slash);
string user = NetworkLogin.Substring(slash + 1);
NetworkLogin = user + "@" + domain;
}
// The WindowsIdentity(string) constructor uses the new
// Kerberos S4U extension to get a logon for the user
// without a password.
WindowsIdentity wi = new WindowsIdentity(NetworkLogin);
WindowsImpersonationContext wic = null;
try
{
wic = wi.Impersonate();
// Code to access network resources goes here.
whileLoad(pi.dbGetPersonnelInformation());
}
catch(Exception e)
{
throw new Exception(e.ToString());
}
finally
{
// Make sure to remove the impersonation token
if( wic != null)
wic.Undo();
}

.



Relevant Pages

  • SecurityFocus Microsoft Newsletter #154
    ... MICROSOFT VULNERABILITY SUMMARY ... ISS RealSecure Server Sensor SSL Denial Of Service Vulnerabi... ... Roger Wilco Remote Server Side Buffer Overrun Vulnerability ... available for Microsoft Windows operating systems. ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #49
    ... Subject: SecurityFocus Microsoft Newsletter #49 ... Microsoft Windows NNTP Denial of Service Vulnerability ... Microsoft IIS SSI Buffer Overrun Privelege Elevation Vulnerability ... Microsoft ISA Server H.323 Memory Leak Denial of Service... ...
    (Focus-Microsoft)
  • ~~~~~~~~~~~~~~~ CANNOT FIND ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ... cannot find server or dns error ... windows cannot find null ... windows cannot find the network path ... cannot find internet explorer on computer ...
    (comp.protocols.snmp)
  • Questions Relating to Administering Windows 2000 Server
    ... installed the network client on the target computer. ... Sarah has been attempting to install Windows 2000 ... Server for two days. ... Sarah has checked the cables and hard drives. ...
    (microsoft.public.cert.exam.mcse)
  • pqv¼Ò¹ÚÇÑ ²Þ@mBGRx
    ... O-009¹Ù¢Ã MS Windows 2000 Datacenter Server -2¸¸¿ø ... Main Application (Borland C++ Builder 6 Enterprise Edition) ... Y-166¢Ã Sex Starved Sluts 1 (Divx) ...
    (FreeBSD-Security)