RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
Kerberos命令怎么使用

Kerberos命令怎么使用,针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。

10年积累的网站设计、网站建设经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先网站制作后付款的网站建设流程,更有东安免费网站建设让你可以放心的选择与我们合作。

1.登录 kinit admin/admin@EXAMPLE.COM
2.查询登录状态 klist
3.退出 kdestroy
4.登录管理KDC服务器
  登录后台 kadmin.local
 查看用户列表 listprincs
 修改账号密码 change_password admin/admin@EXAMPLE.COM

删除用户 delete_principal test1
 创建用户 add_principal  test/admin@EXAMPLE.COM
5.使用Keytab验证是否可以登录(无错误输出即可)
kinit -kt /etc/security/keytabs/admin.keytab admin/admin@EXAMPLE.COM

6.查看keytab文件中的帐号列表
 klist -ket /etc/security/keytabs/hdfs.headless.keytab 

7.将用户导入到keytab文件(修改密码或者增加用户之后如果使用kinit -kt /etc/security/keytabs/admin.keytab admin/admin@EXAMPLE.COM 登录需要导出到keytab文件 )

[root@ambari-01 presto]# kadmin.local 
Authenticating as principal root/admin@thxh.COM with password.
kadmin.local:  xst -k /etc/security/keytabs/hive.service.keytab hive/ambari-01@thxh.COM
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type aes256-cts-hmac-sha1-96 added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type aes128-cts-hmac-sha1-96 added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type des3-cbc-sha1 added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type arcfour-hmac added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type camellia256-cts-cmac added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type camellia128-cts-cmac added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type des-hmac-sha1 added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
Entry for principal hive/ambari-01@thxh.COM with kvno 5, encryption type des-cbc-md5 added to keytab WRFILE:/etc/security/keytabs/hive.service.keytab.
kadmin.local:  exit

 xst -k /etc/security/keytabs/hive.service.keytab  -norandkey hive/ambari-01@thxh.COM (不修改密码)

这个好使 ktadd -k /etc/security/keytabs/user.keytab -norandkey user(不修改密码)

 修改账号密码 change_password admin/admin@EXAMPLE.COM    再试试导入密码到文件

关于Kerberos命令怎么使用问题的解答就分享到这里了,希望以上内容可以对大家有一定的帮助,如果你还有很多疑惑没有解开,可以关注创新互联行业资讯频道了解更多相关知识。


网页标题:Kerberos命令怎么使用
标题网址:http://scyingshan.cn/article/pjjpic.html