我有这个文件,当我执行命令 kdb5_util create -s 时出现错误“格式不正确”
这是文件
includedir /etc/krb5.conf.d/
[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
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true
rdns = false
default_realm = ITZGEEK.COM
default_ccache_name = KEYRING:persistent:%{uid}
[realms]
ITZGEEK.COM = {
kdc = krbserver.itzgeek.com
admin_server = krbserver.itzgeek.com
}
[domain_realm]
.itzgeek.com = ITZGEEK.COM
itzgeek.com = ITZGEEK.COM
[appdefauts]
pam= {
debug = true
validate = false
}
这是我的 kdc.conf 文件
default_realm = ITZGEEK.COM
[kdcdefaults]
kdc_ports = 88
kdc_tcp_ports = 88
[realms]
ITZGEEK.COM = {
master_key_type = des-hmac-sha1
default_principal_flags = +preauth
acl_file = /var/kerberos/krb5kdc/kadm5.acl
dict_file = /usr/share/dict/words
admin_keytab = /etc/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
}
答案1
krb5.conf 文件看起来正常
你的密钥管理中心文件。修复它,然后重新启动 KDC 守护程序以使更改生效。
kdc.conf 文件补充了 krb5.conf,用于通常仅在 KDC 上使用的程序,例如 krb5kdc 和 kadmind 守护程序以及 kdb5_util 程序