当我尝试使用此命令时,我想使用 kerberos 安装 openldap:“/etc/init.d/krb5-kdc start”我收到错误:krb5kdc:无法初始化领域示例.COM - 有关详细信息,请参阅日志文件日志文件:krb5kdc:可以不获取主密钥(错误:没有这样的文件或目录)。- 在为领域EXAMPLE.COM 获取主密钥K/M 时有什么问题?我该如何解决这个问题
我的 krb5.conf
[libdefaults]
default_realm = EXAMPLE.COM
dns_lookup_realm = false
dns_lookup_kdc = false
[realms]
EXAMPLE.COM = {
#default_domain = example.com
#admin_server = kdc01.example.com
#kdc = kdc01.example.com
database_module = openldap_ldapconf
}
[domain_realm]
.example.com = EXAMPLE.COM
example.com = EXAMPLE.COM
[dbdefaults]
ldap_kerberos_container_dn = dc=example,dc=com
[dbmodules]
openldap_ldapconf = {
db_library = kldap
ldap_kdc_dn = "cn=admin,dc=example,dc=com"
ldap_kadmind_dn = "cn=admin,dc=example,dc=com"
ldap_service_password_file = /etc/krb5kdc/service.keyfile
ldap_servers = ldapi:///
ldap_conns_per_server = 5
}
[logging]
default = FILE:/var/krb5/kdc.log
kdc = FILE:/var/krb5/kdc.log
admin_server = FILE:/var/log/kadmind.log
[kdc]
profile = /etc/krb5kdc/kdc.conf