kerberos安装

kerberos安装
1.server端
# yum install -y krb5-server krb5-libs krb5-auth-dialog
client端
# yum install -y krb5-workstation krb5-libs krb5-auth-dialog
各机器上均虚安装openssl
# yum install krb5-pkinit-openssl


//修改/etc/krb5.conf
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]
default_realm = HADOOP.COM
dns_lookup_kdc = false
dns_lookup_realm = false
clockskew = 120
ticket_lifetime = 86400
renew_lifetime = 604800
forwardable = true
renewable = true

[realms]
HADOOP.COM = {
kdc = cdh02.hadoop.com
admin_server = cdh02.hadoop.com
}
[domain_realm]
 .hadoop.com = HADOOP.COM
 hadoop.com = HADOOP.COM

[kdc]
profile=/var/kerberos/krb5kdc/kdc.conf


//修改/var/kerberos/krb5kdc/kdc.conf
vim /var/kerberos/krb5kdc/kdc.conf
[root@master ~]# cat /var/kerberos/krb5kdc/kdc.conf
[kdcdefaults]
 kdc_ports = 88
 kdc_tcp_ports = 88

[realms]
 HADOOP.COM = {
  master_key_type = aes256-cts
  max_life = 25h
  max_renewable_life = 4w
  acl_file = /var/kerberos/krb5kdc/kadm5.acl
  dict_file = /usr/share/dict/words
  admin_keytab = /var/kerberos/krb5kdc/kadm5.keytab
  supported_enctypes = aes256-cts:normal aes128-cts:normal des3-hmac-sha1:normal arcfour-hmac:normal des-hmac-sha1:normal des-cbc-md5:normal des-cbc-crc:normal
  max_life = 24h
  max_renewable_life = 10d
  #default_principal_flags = +renewable, +forwardable
 }

 拷贝krb5.conf到集群中其他机器上

 修改kadm5.acl
 */admin@HADOOP.COM      *

创建krb数据库
 kdb5_util create -r HADOOP.COM -s

 //启动kdc服务器
/sbin/service krb5kdc start
/sbin/service kadmin start
chkconfig --level 35 krb5kdc on
chkconfig --level 35 kadmin on

创建管理员用户 cloudera/admin 123456

cm里点击主机 重新运行安装向导 升级java包
整理的升级指的是启用java里的jce功能,jce是负责安全模块,去网上下载jce自行安装也是可以的。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值