Kerberos原理介绍
kerberos主要是用来做网络通信时候的身份认证,最主要的特点就是“复杂”。所以在入坑kerberos之前,最好先熟悉一下其原理。这里推荐一些别人写的文章内容来进行简单汇总:
1.链接:
kerberos认证原理
2.Kerberos认证流程:
KDC服务安装及配置
本文档中将KDC服务安装在worker3节点服务器上(KDC服务可根据自己需要安装在其他服务器,最好安装在Cloudera Manager Server所在的服务器上)
1.在worker3节点上安装KDC服务
[root@worker3 ~]# yum -y install krb5-serverkrb5-libs krb5-auth-dialog krb5-workstation
2.修改/etc/krb5.conf配置(标红部分为需要修改的信息)
[root@worker3 ~]# vim /etc/krb5.conf
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
[libdefaults]
dns_lookup_realm = false
dns_lookup_kdc = false
clockskew = 600
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true
rdns = false
default_realm = WANWEI.COM
# default_ccache_name = KEYRING:persistent:%{uid}
[realms]
WANWEI.COM = {
kdc = worker3
admin_server = worker3
}
[domain_realm]
# .example.com = EXAMPLE.COM
# example.com = EXAMPLE.COM
.worker3 = WANWEI.COM
worker3 = WANWEI.COM
这个配置kdc,kerberos客户端,以及调用kerberos api时都会使用到。<