Hi all,
I am exploring the world of Kerberos authentication, but running into an issue while trying to setup a server (not the KDC). Specifically, the following:
Notice that it asks me to enter the password for root/admin@EXAMPLE.ORG. Also, notice that it fails to find the file /var/heimdal/heimdal. I have not setup an account for either of these two accounts on the KDC. On this same machine when I run
Notice that this time it does not ask me for the file /var/heimdal/heimdal. The only configuration I have done on the server side is copy the /etc/krb5.conf from the KDC machine. I am following the documentation here, section 13.5.2: https://www.freebsd.org/doc/handbook/kerberos5.html Is it out of date maybe?
What might be the cause of this? Did I skip a step somewhere? Please advise.
I am exploring the world of Kerberos authentication, but running into an issue while trying to setup a server (not the KDC). Specifically, the following:
Code:
root@kerb-server:~ # kadmin
root/admin@EXAMPLE.ORG's Password:
kadmin> add --random-key host/kerb-server.example.org
Max ticket life [unlimited]:
Max renewable life [unlimited]:
Principal expiration time [never]:
Password expiration time [never]:
Attributes []:
kadmin: kadm5_create_principal: dbopen (/var/heimdal/heimdal): No such file or directory
kadmin: adding host/kerb-server.example.org: dbopen (/var/heimdal/heimdal): No such file or directory
Notice that it asks me to enter the password for root/admin@EXAMPLE.ORG. Also, notice that it fails to find the file /var/heimdal/heimdal. I have not setup an account for either of these two accounts on the KDC. On this same machine when I run
kinit user0
and enter the valid password, I am receive an authentication ticket visible when I run k klist
. When I try to run kadmin
on the server after this, I am prompted to enter the password user0 (why again?) which I do, but it produces the same error:
Code:
root@kerb-server:~ # klist
Credentials cache: FILE:/tmp/krb5cc_0
Principal: user0@EXAMPLE.ORG
Issued Expires Principal
Oct 9 20:10:27 2019 Oct 10 06:10:27 2019 krbtgt/EXAMPLE.ORG@EXAMPLE.ORG
root@kerb-server:~ # kinit user0
user0@EXAMPLE.ORG'Password:
root@kerb-server:~ # kadmin
kadmin> add --random-key host/kerb-server.example.org
user0/admin@EXAMPLE.ORG's Password:
Max ticket life [unlimited]:
Max renewable life [unlimited]:
Principal expiration time [never]:
Password expiration time [never]:
Attributes []:
user0/admin@EXAMPLE.ORG's Password:
kadmin: kadm5_create_principal: Client (user0/admin@EXAMPLE.ORG)unknown
kadmin: adding host/kerb-server.example.org: Client (user0/admin@EXAMPLE.ORG) unknown
Notice that this time it does not ask me for the file /var/heimdal/heimdal. The only configuration I have done on the server side is copy the /etc/krb5.conf from the KDC machine. I am following the documentation here, section 13.5.2: https://www.freebsd.org/doc/handbook/kerberos5.html Is it out of date maybe?
What might be the cause of this? Did I skip a step somewhere? Please advise.