Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed May 22 21:33:14 UTC 2024 on atb-devel-224
* against possible future attacks on weak
* keys.
*/
+
+ /*
+ * The krbtgt account is never a Group Managed Service
+ * Account, but a similar system might well be
+ * implemented as a means of having the krbtgt’s keys
+ * roll over automatically. In that case, thought might
+ * be given as to how this security measure — of
+ * stripping out weaker keys — would interact with key
+ * management.
+ */
+
entry->keys.len = 1;
if (entry->etypes != NULL) {
entry->etypes->len = MIN(entry->etypes->len, 1);