我必须使用OpenLDAP后端设置Kerberos服务器。 我安装了OpenLDAP,我安装了Kerberos。 现在,我必须加入这两个。我用kdb5_ldap_util来做这件事。
root@server-kdc:~# sudo kdb5_ldap_util -D cn=Manager,dc=company,dc=local create -subtrees dc=company,dc=local -r KERBEROS.COM -s
Password for "cn=Manager,dc=company,dc=local":
Initializing database for realm 'KERBEROS.COM'
You will be prompted for the database Master Password.
It is important that you NOT FORGET this password.
Enter KDC database master key:
Re-enter KDC database master key to verify:
Kerberos container is missing. Creating now...
kdb5_ldap_util: Kerberos Container create FAILED: No such object while creating realm 'KERBEROS.COM'
这是日志:
root@server-kdc:~# cat /var/log/syslog
.
.
.
May 26 15:34:59 server-kdc slapd[4601]: conn=1033 op=1 SEARCH RESULT tag=101 err=32 nentries=0 text=
May 26 15:34:59 server-kdc slapd[4601]: conn=1033 op=2 ADD dn="cn=Manager,dc=company,dc=local"
May 26 15:34:59 server-kdc slapd[4601]: conn=1033 op=2 RESULT tag=105 err=32 text=
May 26 15:34:59 server-kdc slapd[4601]: conn=1033 op=3 UNBIND
May 26 15:34:59 server-kdc slapd[4601]: conn=1033 fd=18 closed
May 26 15:34:59 server-kdc slapd[4601]: conn=1032 op=1 UNBIND
May 26 15:34:59 server-kdc slapd[4601]: conn=1032 fd=17 closed
May 26 15:34:59 server-kdc slapd[4601]: conn=1031 op=1 UNBIND
May 26 15:34:59 server-kdc slapd[4601]: conn=1031 fd=16 closed
May 26 15:34:59 server-kdc slapd[4601]: conn=1030 op=1 UNBIND
May 26 15:34:59 server-kdc slapd[4601]: conn=1030 fd=15 closed
May 26 15:34:59 server-kdc slapd[4601]: conn=1029 op=1 UNBIND
May 26 15:34:59 server-kdc slapd[4601]: conn=1029 fd=12 closed
root@server-kdc:~#
如果你可以帮助我会很酷。 感谢。