创建keytab以自动化脚本

时间:2016-01-14 01:10:17

标签: bash kerberos keytab

我无法创建keytab以自动运行我正在运行的脚本。

我正在使用此网站作为参考here

这是我到目前为止所做的:

$ ktutil
ktutil:  addent -password -p bli1@testtesttest.corp.supernice.net -k 1 -e arcfour-hmac
Password for bli1@testtesttest.corp.supernice.net: 
ktutil:  
ktutil:  wkt bli1.keytab
ktutil:  quit

当我尝试运行脚本时,出现了此错误:

$ kinit bli1@testtesttest.corp.supernice.net -k -t bli1.keytab; python3 -m pytrinity.monitors.rate_monitor test
kinit: Cannot find KDC for requested realm while getting initial credentials

我不确定我是否正确创建了keytab,因为我很难在keytab创建过程中找到有关每个参数的深入文档。我不确定-k用于什么。

addent: add entry
-password: add password
-p: principal
-e: encryption

1 个答案:

答案 0 :(得分:1)

我认为问题在于根据错误消息连接到KDC。你的kerberos配置文件中有什么? /etc/krb5.conf通常是它的名称。

相关问题