Kerberos 简介,举例,名词解释,相关文献

Datax从入门到精通03--Kerberos认证问题处理 文章目录前言一、Kerberos认证问题二、解决方案一1.修改Json文件2. 配置文件3. 重新编译打包三、解决方案二总结 前言 如果没有使用kerberos认证的Hadoop集群直接参照官方文档就好了,但是如果使用了kerberos安全认证的,那么接下来是一个比较值得推荐的做法。 一、Kerberos认证问题 有关Kerberos认证相关的问题这里不展开讲,有需要的小伙伴可以自行百度,这里主要讲下使用datax抽数从个MySQL到Hive的kerberos认证问题处理解决办法。 二、解决方案一 阅读详情

这是一篇简洁的 Kerberos 介绍。

举个例子

Kerberos 就像去食堂打饭,第一步先去收银台买饭票,第二步拿着饭票来到对应窗口取饭。


唯一的区别就是,现实生活里你可能是用钱买饭票,但是在 Kerberos 的世界吃饭是免费的,你只要出示学生卡证明身份,就能拿到饭票。


具体协议流程如图所示:

IMG_3158.JPG

RFC 链接:https://tools.ietf.org/html/rfc4120

The basic Kerberos authentication process proceeds as follows: A client sends a request to the authentication server (AS) for "credentials" for a given server.  The AS responds with these credentials, encrypted in the client's key.  The credentials consist of a "ticket" for the server and a temporary encryption key (often called a "session key").  The client transmits the ticket (which contains the client's identity and a copy of the session key, all encrypted in the server's key) to the server.  The session key (now shared by the client and server) is used to authenticate the client and may optionally be used to authenticate the server.  It may also be used to encrypt further communication between the two parties or to exchange a separate sub-session key to be used to encrypt further communication.  Note that many applications use Kerberos' functions only upon the initiation of a stream-based network connection. Unless an application performs encryption or integrity protection for the data stream, the identity verification applies only to the initiation of the connection, and it does not guarantee that subsequent messages on the connection originate from the same principal.


Implementation of the basic protocol consists of one or more authentication servers running on physically secure hosts.  The authentication servers maintain a database of principals (i.e., users and servers) and their secret keys.  Code libraries provide encryption and implement the Kerberos protocol.  In order to add authentication to its transactions, a typical network application adds calls to the Kerberos library directly or through the Generic Security Services Application Programming Interface (GSS-API) described in a separate document [RFC4121].  These calls result in the transmission of the messages necessary to achieve authentication. The Kerberos protocol consists of several sub-protocols (or exchanges).  There are two basic methods by which a client can ask a Kerberos server for credentials.  In the first approach, the client sends a cleartext request for a ticket for the desired server to the AS.  The reply is sent encrypted in the client's secret key.  Usually this request is for a ticket-granting ticket (TGT), which can later be used with the ticket-granting server (TGS).  In the second method, the client sends a request to the TGS.  The client uses the TGT to authenticate itself to the TGS in the same manner as if it were contacting any other application server that requires Kerberos authentication.  The reply is encrypted in the session key from the TGT.  Though the protocol specification describes the AS and the TGS as separate servers, in practice they are implemented as different protocol entry points within a single Kerberos server.


Once obtained, credentials may be used to verify the identity of the principals in a transaction, to ensure the integrity of messages exchanged between them, or to preserve privacy of the messages.  The application is free to choose whatever protection may be necessary.


To verify the identities of the principals in a transaction, the client transmits the ticket to the application server.  Because the ticket is sent "in the clear" (parts of it are encrypted, but this encryption doesn't thwart replay) and might be intercepted and reused by an attacker, additional information is sent to prove that the message originated with the principal to whom the ticket was issued. This information (called the authenticator) is encrypted in the session key and includes a timestamp.  The timestamp proves that the message was recently generated and is not a replay.  Encrypting the authenticator in the session key proves that it was generated by a party possessing the session key.  Since no one except the requesting principal and the server know the session key (it is never sent over the network in the clear), this guarantees the identity of the client.


The integrity of the messages exchanged between principals can also be guaranteed by using the session key (passed in the ticket and contained in the credentials).  This approach provides detection of both replay attacks and message stream modification attacks.  It is accomplished by generating and transmitting a collision-proof checksum (elsewhere called a hash or digest function) of the client's message, keyed with the session key.  Privacy and integrity of the messages exchanged between principals can be secured by encrypting the data to be passed by using the session key contained in the ticket or the sub-session key found in the authenticator.

名词解释

  • Client:就是吃饭的学生。

  • Server:就是打饭的大娘。

  • Authentication Server (AS)/ KDC:卖饭票的大姐。

  • Principal:就是指 Client 或者 Server 这样的参与网络通信的其中一方,有唯一标识符来表示。

  • Credentials:AS 返回给 Client 的信息,包含两部分:Ticket 和 SessionKey。被 Client 密钥加密,只有 Client 能看到内容。

  • Ticket:包含两部分:Client 的身份信息和 SessionKey。被 Server 的密钥加密,只有 Server 能看到内容。

  • TGT:如果有一个 Server 是认证服务器,,Kerberos 中的 Credentials 就可以被称为 TGT。此时整个过程主要是通过 Kerberos,免去用户名密码去 Server 那里拿一个登录状态。此时的 Server 称为 TGS。



参考资料:

英文:

https://tools.ietf.org/html/rfc4120

https://web.mit.edu/Kerberos/krb5-1.5/krb5-1.5.4/doc/krb5-user/Introduction.html

中文:

http://www.cnblogs.com/idior/archive/2006/03/20/354027.html


Ambari集成Kerberos 搭建ambari请参考我的上一篇博客:centos7安装Ambari 2.7.5 + HDP3.1.5 Kerberos搭建 环境: 首先时间一定要同步。 节点 server:hadoop101 client:hadoop102 hadoop103 搭建Kerberos Server kdc服务器包含三个配置文件: # 集群上所有节点都有这个文件而且内容同步 /etc/krb5.conf # 主服务器上的kdc配置 /var/kerberos/krb5kdc/kdc.conf # 能够不直接访问 KDC 阅读详情

相关推荐

Kerberos的安装与配置

本篇内容为Kerberos的安装与配置

cisiy0226的博客 652

安全认证Kerberos详解

Kerberos是一种计算机网络认证协议,用来在非安全网络中,对个人通信以安全的手段进行身份认证。这个词又指麻省理工学院为这个协议开发的一套计算机软件。软件设计上采用客户端/服务器结构,并且能够进行相互认证,即客户端和服务器端均可对对方进行身份认证。可以用于防止窃听、防止重放攻击、保护数据完整性等场合,是一种应用对称密钥体制进行密钥管理的系统。

Shawn的个人博客 1万+

别再死记硬背参数了!手把手教你用Fluent欧拉模型搞定流化床模拟(附颗粒粘度/体积分数设置详解)

本文深入解析Fluent欧拉模型在流化床模拟中的应用,重点讲解颗粒粘度和体积分数等关键参数的设置原理与科学方法。通过对比不同模型(如Syamlal-O'Brien、Gidaspow)的适用场景,帮助工程师摆脱参数死记硬背,实现精准模拟。内容涵盖相间作用机制、求解策略优化及结果验证,为化工、能源领域的流化床模拟提供实用指南。

weixin_42656416的博客 429

全网最详细 | Kerberos协议详解

目录Kerberos基础PAC特权属性证书1. PAC结构2. PAC凭证信息3. PAC签名4. KDC验证PAC5. PAC在kerberos中的优缺点Kerberos实验AS-REQ & AS-REP1. AS-REQ请求包分析2. AS-REP回复包分析 (1) TGT认购权证 (2) Lo...

Ms08067安全实验室 8212

ptrade从零开始学习量化交易第166期【ptrade量化策略研究参考--三个因子挖掘思路】

三个因子挖掘思路

GJ57017_wx的博客 1248

S32DS使用手把手教程:从零实现CAN通信配置

深入讲解S32DS使用过程中如何从零开始配置CAN通信,涵盖关键步骤与实用技巧,帮助开发者快速上手S32DS使用中的常见问题与调试方法。

weixin_42405592的博客 1126

Kerberos从入门到精通以及案例实操系列(一)

整个kerberos认证的过程较为复杂,三次通信中都使用了密钥,且密钥的种类一直在变化,并且为了防止网络拦截密钥,这些密钥都是临时生成的Session Key,即他们只在一次Session会话中起作用,即使密钥被劫持,等到密钥被破解可能这次会话都早已结束,这为整个kerberos认证过程保证了较高的安全性。kerberos认证的整体流图kerberos认证的时序图本地登录(无需认证)远程登录(需进行主体认证,认证操作见下文)退出输入:exit2. 创建Kerberos主体。

prefect_start的博客 7070

手把手教你用示波器搞定PCIe 5.0 REFCLK时钟信号测量(附完整参数解读)

本文详细介绍了如何使用示波器进行PCIe 5.0 REFCLK时钟信号测量,包括示波器与探头的选择、关键参数的测量方法及解读,以及实战中的常见问题与解决方案。通过手把手教学和完整参数解读,帮助硬件工程师高效完成时钟信号测量,确保系统稳定性。

weixin_28704565的博客 359

Kerberos认证原理与使用教程

Kerberos认证原理与使用教程

m0_46168848的博客 1万+

Julia Ann老司机管理系统

https://content.badgirlsusa.com/Julia_Ann-Sexy_Julia_Ann_Fucks_A_Lil_Elf's_Big_Cock_/Julia-Ann-Naughty-America-%E6%80%A7%E6%84%9F%E7%9A%84%E8%A3%98%E8%8E%89%E5%A9%AD%E5%AE%89%E4%BA%82%E6%90%9E-lil-%E7%B2%BE%E9%9D%88%E7%9A%84%E5%A4%A7%E5%85%AC%E9%9B%9E-2020

www_oracle_com的博客 22万+

【Unity】【VR】如何让Distance Grab抓取物品时限制物品的Rotation

VR中Canvas抓取旋转问题的解决方案 在VR应用中,Canvas作为UI面板常需被抓取拖动,但默认会随手柄产生Z轴旋转,导致UI歪斜。Unity的Rigidbody冻结旋转功能对此无效,因为XR抓取直接修改Transform而非物理模拟。

每日出拳老爷子的博客 611

Kerberos原理安装集成kafka例子

目录 Kerbeos简介 Kerbeos认证流程 Kerberos安装步骤 kerberos简单操作 Kafka集成Kerberos例子 本地环境java客户端消费测试代码 错误记录 Kerbeos简介 Kerberos可以将认证的密钥在集群部署时事先放到可靠的节点上。集群运行时,集群内的节点使用密钥得到认证,认证通过后的节点才能提供服务。企图冒充的节点由于没...

m0_37911384的博客 5216

【银河麒麟桌面系统】安装英伟达(NVIDIA)显卡驱动

本文详细介绍了在麒麟桌面操作系统V10 SP1(版本号2503)上安装NVIDIA RTX 5060显卡驱动的完整流程。主要内容包括:查看系统版本信息,从NVIDIA官网下载Linux 64位驱动,授予执行权限后运行安装程序,处理安装过程中的X server警告、32位库安装、DKMS模块选择等问题,以及安装完成后如何验证驱动状态。同时提供了卸载驱动的步骤和常见问题解决方案,如处理X server警告、libglvnd EGL依赖问题等。该指南适用于需要在国产麒麟系统上安装NVIDIA显卡驱动的用户,包含完

信创运维工程师 · 银河麒麟 & 容器实战 | 金融生产环境迁移·等保加固 | 142篇原创·17万+阅读 6312

kerberos:介绍

Kerberos是一种计算机网络授权协议,主要用于在非安全网络环境中对个人通信进行安全的身份认证。这个协议由麻省理工学院(MIT)开发,作为Athena项目的一部分,首次发布于1988年。Kerberos协议目前已经从v1发展到v5,其中v5在1993年被确定为标准的Kerberos协议(RFC1510)。Kerberos协议设计思想的核心是引入一个可信任的第三方来实现客户端和服务端的认证。在Kerberos中,这个可信任的第三方被称为密钥分发中心(KDC)。

玉汝于成 3822

第3课:大模型集成与API设计

OpenAIAnthropicGoogle国内厂商:文心一言、通义千问、讯飞星火。

lpfasd123的博客 111

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

KerberOS Hadoop 认证安装配置

1. 关闭 selinux vim /etc/sysconfig/selinux 2. 安装 yum 源配置参考 https://blog.youkuaiyun.com/Jerry_991/article/details/118910505 3. 安装 kerberos 的 server 端(一般找一台单独的机器) yum install -y krb5-ibs krb5-server krb5-workstation (查看 yum list | grep krb 中是否有安装软件) ...

Jerry的博客 4779

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

kerberos:介绍_kerberos是哪个rfc(1)

Kerberos是一种计算机网络授权协议,主要用于在非安全网络环境中对个人通信进行安全的身份认证。这个协议由麻省理工学院(MIT)开发,作为Athena项目的一部分,首次发布于1988年。Kerberos协议目前已经从v1发展到v5,其中v5在1993年被确定为标准的Kerberos协议(RFC1510)。Kerberos协议设计思想的核心是引入一个可信任的第三方来实现客户端和服务端的认证。在Kerberos中,这个可信任的第三方被称为密钥分发中心(KDC)。

2401_84973032的博客 1223

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

Kerberos 入门与常用操作 浅析

.一 .前言二 .Kerberos认证流程三 .Kerberos Principal四 .Kerberos的优点和不足4.1. 优点4.2. 不足五. KOC常用操作六.Client常用操作 一 .前言 Kerberos协议是 一种计算机网络授权协议, 用于在非安全的网络环境下对个人通信进行加密认证。 Kerberos 通过定义用户 和 服务端所使用的认证身份 (Principal) 来进行访问控制, 用户通过 Kerberos 客户端使用自己的 Principal 向认证服务器进行 身份的认证, 认证

张伯毅的专栏 2853

Kerberos认证以及黄金票据白银票据的简单介绍

Kerberos是一种网络身份认证的协议,协议设计目的是通过使用秘钥加密技术为客户端/服务器应用程序提供强身份验证,保护服务器防止错误的用户使用,同时保护它的用户使用正确的服务器,即支持双向验证。Kerberos协议的整个认证过程的实现不依赖于主机操作系统的认证,无需基于主机地址的信任,不要求网络上所有主机的物理安全,并假定网络上传送的数据包可以被任意的读取、修改和插入数据。简而言之,Kerberos作为一种可信任的第三方认证服务,通过传统的密码技术(共享密钥)执行认证服务。

Reset 1458

内网大门之Kerberos协议详解

今天的分享到此结束,这两天看到一篇好的内网文章,分享给大家,其中一些绕过静态和动态免杀以及创新思路指的学习。WebShell到域控:一条链路打穿整个内网继续当牛马!!!如有逻辑和知识点错误,请大佬纠正,虚心学习。

2302_78877664的博客 209

Ambari2.6.2集成Kerberos

名词解释 Kerberos: Network Authentication protocol(网络认证协议) KDC: Key Distribution center(密钥分配中心) Kadmin: Kerberos Administrator(Kerberos管理) 我这边环境是docker 安装的单节点 Ambari 1配置/etc/hosts 在ip 后面加上kerberos-au...

youngyang_dz的博客 643

大数据安全认证技术Kerberos

对于简单安装的上线的hadoop集群,我们可以认为有如下安全隐患 可以人为的添加一个客户端节点,并以此假冒的客户端来获取集群数据,对于假冒的客户端节点,成功加入集群,就能够伪装成datanode 让得到namenode指派的任务和数据.创建hdfs账户,就可以得到hadoop文件系统的最高权限 Kerberos主要用来做网络通讯中的身份认证,帮助我们高效,安全的识别访问者 ...

sofency'Blog 864

移动管理的名词解释

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_34372728的博客 255

关于信息安全软考的记录4

本文主要记录认证相关的以及访问控制等相关概念的学习。

dayouzi的博客 271

2019-11-22

https://www.cloudera.com/documentation/enterprise/latest.html jdk 1.7下载 博客内容分类参考 https://blog.youkuaiyun.com/qq_30982323/article/details/80704720 CDH开启kerberos认证 https://blog.youkuaiyun.com/DF_XIAO/arti...

dtrtrddrgd的博客 203
上一篇: 程序设计语言
selfind
博客等级 码龄19年 2粉丝 32原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值