CentOS 安装Kerberos服务

CentOS 安装参考:

2. 安装 Kerberos

Kerberos服务安装

Ubantu安装参考:

Ubuntu_Kerberos配置过程记录

Ubuntu 14.04-Kerberos安装和配置

1、在安装kerberos服务之前,首先要配置本地DNS服务器(不需要在域环境中,搭建dns参考:centos7安装dnsmasq局域网dns),或者修改hosts文件。

2、Ubantu下:

删除Kerberos:

sudo apt-get remove --purge krb*

3、如果需要重建数据库,查找principal文件所在的目录,然后将该目录下的principal相关的文件删除即可(不能删除文件principal)

4、错误:

kinit: Cannot contact any KDC for realm 'TOPSEC.COM' while getting initial credentials
解决方法:可能是1、kdc的防火墙没有关; 2、krb5kdc服务没有启动。 并不需要解析域名 TOPSEC.COM

systemctl stop firewalld.service   ##停止防火墙
systemctl disable firewalld.service  ##禁止防火墙开机启动
 

5、centos7,启动kdc 服务

systemctl restart krb5kdc
systemctl restart kadmin

6、CentOS 7 设置Kerberos 认证的NFS共享,该文中没有配置dns服务器,而是配置hosts文件,但是重复其实验,未成功。

发布了221 篇原创文章 · 获赞 26 · 访问量 11万+

猜你喜欢

转载自blog.csdn.net/qq_28808697/article/details/103116870