Skip to content

Commit

Permalink
Update default krb5kdc mkey manual-entry enctype
Browse files Browse the repository at this point in the history
Change from the legacy des-cbc-crc to the default for kdb5_util and
kadmind, which is currently aes256-cts-hmac-sha1-96.
  • Loading branch information
frozencemetery authored and greghudson committed May 21, 2019
1 parent 3e94e53 commit 512f5cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/admin/admin_commands/krb5kdc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ LDAP database.

The **-k** *keytype* option specifies the key type of the master key
to be entered manually as a password when **-m** is given; the default
is ``des-cbc-crc``.
is |defmkey|.

The **-M** *mkeyname* option specifies the principal name for the
master key in the database (usually ``K/M`` in the KDC's realm).
Expand Down
2 changes: 1 addition & 1 deletion src/kdc/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ initialize_realms(krb5_context kcontext, int argc, char **argv,
case 'm': /* manual type-in of master key */
manual = TRUE;
if (menctype == ENCTYPE_UNKNOWN)
menctype = ENCTYPE_DES_CBC_CRC;
menctype = DEFAULT_KDC_ENCTYPE;
break;
case 'M': /* master key name in DB */
mkey_name = optarg;
Expand Down
2 changes: 1 addition & 1 deletion src/man/krb5kdc.man
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ LDAP database.
.sp
The \fB\-k\fP \fIkeytype\fP option specifies the key type of the master key
to be entered manually as a password when \fB\-m\fP is given; the default
is \fBdes\-cbc\-crc\fP\&.
is \fBaes256\-cts\-hmac\-sha1\-96\fP\&.
.sp
The \fB\-M\fP \fImkeyname\fP option specifies the principal name for the
master key in the database (usually \fBK/M\fP in the KDC\(aqs realm).
Expand Down

0 comments on commit 512f5cd

Please sign in to comment.