`
xmeteor
  • 浏览: 75325 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

Kerberos Authentication failed due to time skew

阅读更多
Here is a case we recently worked on about Kerberos authentication issue.



Symptoms:

Assume there is a web site which provides search functions under virtual directory with the Integrated Windows authentication. When clients use FQDN access the web site from out-of-domain, they have to click “OK” button three times on popup authentication windows to get the result grid back.



Analysis:

In IIS log, it records "401 1 2148074241" that indicates the handle specified is invalid.




2009-04-15 00:30:26 W3SVC1 10.101.nn.nn GET /Portal/VD/Show.aspx - 80 - 10.1.19.53 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+InfoPath.1) 401 2 2148074254



In Security log, the system was receiving Event ID 537 log.




Event Type:   Failure Audit

Event Source: Security

Event Category:       (2)

Event ID:       537

Date:            4/15/2009

Time:            3:47:32 PM

User:            NT AUTHORITY\SYSTEM

Computer:     XXX

Description:

Logon Failure:

          Reason:                  An error occurred during logon

          User Name: 

          Domain:                

          Logon Type:   3

          Logon Process:         Kerberos

          Authentication Package:       Kerberos

          Workstation Name:   -

          Status code:  0xC000006D

          Substatus code:       0xC0000133

          Caller User Name:    -

          Caller Domain:         -

          Caller Logon ID:       -

          Caller Process ID:     -

          Transited Services:   -

          Source Network Address:    10.101.nn.nn

          Source Port:  1310

          Caller Process Name:          %16




Generally, status code 0xC000006D means "STATUS_LOGON_FAILURE” and sub status code 0xC0000133 translate to “STATUS_TIME_DIFFERENCE_AT_DC”.  The problem could be caused because there is a time difference (greater than 5 minutes) between the two computers.



In the network trace, we also can see



HTTP  KRB Error: KRB5KRB_AP_ERR_SKEW (text/html)




The KRB5KRB_AP_ERR_SKEW indicates clock skew too great.



Check the timestamp between client and server network traces to verify that there is 13 minutes difference.



Solution:



It is clear now that the time difference (>5 min) between client and server causes the Kerberos authentication issue. Change the client machine time to synchronize with IIS server and resolve the issue. Refer to this article:



Verifying Computer Settings for Troubleshooting Kerberos

http://technet.microsoft.com/en-us/library/cc787535.aspx


------------------------------------------------------------------
Make sure that the clocks are synchronized across the domain.

Many network services, including Kerberos authentication are dependent on time synchronization throughout the domain. You can manually synchronize a computer with the time on the domain.

To synchronize the computer's time with the current time on the domain



1.    Click Start, and then click Run.

2.    Type net time /domain /set, and then click OK.
-------------------------------------------------------------------



More information:



How to configure IIS to support both the Kerberos protocol and the NTLM protocol for network authentication 

http://support.microsoft.com/kb/215383/



Regards,



Anik Shen

Referrence:
http://blogs.msdn.com/b/asiatech/archive/2009/04/27/kerberos-authentication-failed-due-to-time-skew.aspx
分享到:
评论

相关推荐

    Simple Kerberos Authentication for Java-开源

    本项目“Simple Kerberos Authentication for Java”是针对Java开发的一个开源实现,专注于简化Kerberos v5的身份验证流程。 Kerberos v5是一种基于票证的认证协议,其核心思想是通过第三方可信认证中心(Kerberos...

    谈谈基于Kerberos的Windows Network Authentication

    ### 基于Kerberos的Windows Network Authentication详解 #### 一、Kerberos认证的基本原理 Kerberos是一种广泛使用的认证协议,特别是在Windows域环境中,它为用户提供了一种安全的方式来验证自己的身份,并在此...

    Kerberos权威指南 Kerberos The Definitive Guide

    it covers everything from basic installation to advanced topics like cross-realm authentication, defending against attacks on Kerberos, and troubleshooting. In addition to covering Microsoft's Active...

    Kerberos-Authentication-Protocol-master.zip_Kerberos

    《Kerberos认证协议详解——基础篇》 Kerberos是一种强大的网络认证协议,它为用户提供了一种安全的身份验证方式,确保在网络通信中只有合法的用户可以访问资源。本篇文章将深入探讨Kerberos的基本原理、工作流程...

    Squid Kerberos Authentication Helper-开源

    这是一个帮助程序,用于鱿鱼使用协商身份验证标签执行基于Kerberos的用户身份验证的帮助程序。 已通过IE7和Firefox测试

    Oracle Solaris 11.3 Managing Kerberos and Other Authentication S

    4. **集成其他认证服务**:Oracle Solaris 11.3支持与其他认证机制如NIS(Network Information Service)、LDAP(Lightweight Directory Access Protocol)和PAM(Pluggable Authentication Modules)的集成。...

    Oracle Solaris 11.2 Managing Kerberos and Other Authentication S

    除了Kerberos,Oracle Solaris 11.2还提供了其他多种认证服务,如PAM(Pluggable Authentication Modules)允许灵活地选择和组合不同的认证方法。PAM允许系统管理员根据需要调整认证策略,以适应不断变化的安全需求...

    kerberos的java实现

    **Kerberos协议详解** Kerberos是一种网络身份验证协议,由麻省理工学院开发,旨在提供安全的网络服务。它的核心理念是通过共享密钥的方式进行身份验证,确保通信双方的安全交互。Java语言实现的Kerberos允许开发者...

    Privacy and Authentication An introduction to cryptography

    身份验证协议是另一种常见的认证手段,如Kerberos协议。这类协议通过在客户端和服务端之间建立安全通道,使用密钥交换技术确保双方的身份真实可信。 #### 应用案例 密码学技术广泛应用于各种实际场景中,以确保...

    Kerberos v5 源代码

    2. **密钥分发中心(KDC)**:Kerberos 系统的核心是 Key Distribution Center(KDC),它分为两个部分:Authentication Server(AS)和Ticket-Granting Server(TGS)。AS负责首次身份验证,TGS则处理后续的服务...

    Kerberos简介

    ### Kerberos简介与工作原理 #### 一、Kerberos概述 Kerberos是一种网络认证协议,其设计目的是为了在不安全的网络环境中为客户端/服务器应用提供强大的身份验证服务。该协议通过加密技术来确保数据的安全性,并且...

    kerberos安全认证demo

    配置涉及`hive.server2.authentication`设为`KERBEROS`,并指定其他相关Kerberos参数。 6. **HDFS**:Hadoop分布式文件系统(HDFS)是Hadoop的基础,提供高容错性和高吞吐量的数据存储。在Kerberos环境中,HDFS使用...

    为hdfs配置kerberos

    "HDFS 配置 Kerberos" 本文档记录了为 Hadoop 的 HDFS 配置 Kerberos 的过程,Hadoop 的版本是 2.4.1。Kerberos 是一种常用的身份验证协议,用于提供安全的身份验证机制。在 Hadoop 中,Kerberos 可以用于 HDFS 和 ...

    Kerberos Administration Guide

    Kerberos is a network authentication protocol. It is designed to provide strong authentication for client/server applications by using secret-key cryptography. A free implementation of this protocol ...

    Kerberos

    【标题】:Kerberos详解 【描述】:Kerberos是一种广泛应用于网络身份验证的安全协议,由麻省理工学院开发。它通过提供强大的加密机制,确保用户在访问网络资源时的身份安全,防止中间人攻击和其他形式的欺诈。...

    kerberos-gss-helloworld

    2. `jaas.conf`:Java Authentication and Authorization Service (JAAS) 配置文件,定义了Kerberos认证的配置细节,如KDC的位置和客户端/服务端的认证策略。 3. `client.properties` 和 `server.properties`:可能...

    kafka 配置kerberos安全认证

    ### Kafka配置Kerberos安全认证详解 #### 一、引言 Kafka 是一款高性能的消息队列服务,广泛应用于大数据处理领域。为了保障数据的安全性和完整性,Kafka 提供了多种安全认证机制,其中 Kerberos 认证是一种非常...

    【清晰】Kerberos安全体系详解.pdf

    Kerberos是一种网络认证协议,它的核心目的是在网络环境中提供安全的身份验证服务。Kerberos工作原理涵盖了几个关键组成部分和概念,包括身份验证服务器(AS)、票据授权服务器(TGS)和票据(Tickets)等。它采用...

    presto-kerberos

    标题“presto-kerberos”指代的是一项有关Presto数据库管理系统和Kerberos认证系统的技术配置。Presto是一个开源的分布式SQL查询引擎,它用于执行实时分析,能够处理PB级别的数据。Kerberos是一种网络认证协议,主要...

    flink写入带kerberos认证的kudu connector

    properties.setProperty("kudu.kerberos.keytab", "/path/to/your/keytab/file"); // 使用Table API StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); TableEnvironment ...

Global site tag (gtag.js) - Google Analytics