I can log in to the server; "kinit" works just fine. However, kadmind
refuses to start, and when I run "kadmin.local", I get:
root@lounge ~ # kadmin.local
Authenticating as principal root/admin@GREP.BE with password.
kadmin.local: Required parameters in kdc.conf missing while initializing kadmin.local interface
From experience, this probably means you have a single-DES enctypelisted in supported_enctypes and are using release 1.18. (In 1.17 or
On 9/20/22 10:19, Wouter Verhelst wrote:
I can log in to the server; "kinit" works just fine. However, kadmind refuses to start, and when I run "kadmin.local", I get:
root@lounge ~ # kadmin.local
Authenticating as principal root/admin@GREP.BE with password.
kadmin.local: Required parameters in kdc.conf missing while initializing kadmin.local interface
This is one of our worst error messages (see https://krbdev.mit.edu/rt/Ticket/Display.html?id=8247 ).
From experience, this probably means you have a single-DES enctype
listed in supported_enctypes and are using release 1.18. (In 1.17 or previous the enctype would be recognized; in 1.19 or later the library
would ignore the enctype rather than failing out.) Remove the
single-DES enctype and kadmind should start working again.
On Tue, Sep 20, 2022 at 11:43:40AM -0400, Greg Hudson wrote:
From experience, this probably means you have a single-DES enctype
listed in supported_enctypes and are using release 1.18. (In 1.17 or
previous the enctype would be recognized; in 1.19 or later the library
would ignore the enctype rather than failing out.) Remove the
single-DES enctype and kadmind should start working again.
So, supported_enctypes is not even in the krb5.conf file; I assume that
means it then reverts to defaults?
This is one of our worst error messages (see
https://krbdev.mit.edu/rt/Ticket/Display.html?id=8247 ).
Yeah, no kidding. I actually looked at the source a while ago to try and >figure out what was happening, but no luck; the location where the error >message is printed has absolutely no link anymore with the location
where the error occurs...
fcc-mit-ticketflags = true
It might be that I haven't properly migrated it from single-DES to more >modern enctypes; is this something I would be able to see if I looked at
a dump of the database? If so, how would I go about that, and can I
still fix this?
Wouter Verhelst <w@uter.be> writes:
On Tue, Sep 20, 2022 at 11:43:40AM -0400, Greg Hudson wrote:
From experience, this probably means you have a single-DES enctype
listed in supported_enctypes and are using release 1.18. (In 1.17 or
previous the enctype would be recognized; in 1.19 or later the library
would ignore the enctype rather than failing out.) Remove the
single-DES enctype and kadmind should start working again.
So, supported_enctypes is not even in the krb5.conf file; I assume that means it then reverts to defaults?
That's your krb5.conf, but the error message is about your kdc.conf (/etc/krb5kdc/kdc.conf). It has its own separate supported_enctypes
setting.
default_principal_expiration = 0
On 9/21/22 03:45, Wouter Verhelst wrote:
default_principal_expiration = 0
This value is failing to parse as a timestamp. Removing this line
appears to clear up the config parsing error, and the default should
have the same effect.
I see that the documentation for default_principal_expiration says "The default value is 0, which means no expiration date." I see how someone
would get that from the code when writing the documentation, but clearly
the documented default should be something that parses. (I think you'd
have to write out the beginning of the POSIX time epoch--in local
time--in something like yyyymmddhhmmss format to get this default.) The whole concept of default_principal_expiration as an absolute time seems suspect to me; I have trouble imagining a productive realm configuration where every new principal by default expires on some particular fixed date.
I don't see any meaningful differences between the current code in this
area and the code going back fifteen years or so. So I'm not sure how
this broke during a migration.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 00:12:27 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,566 |