From 8ac3452fd7a963ec7bfeb42396da2086d546be4d Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 22 Jun 2021 14:46:40 -0500 Subject: [PATCH] kadmin: Add missing attributes; sort units Sorting the units fixes a bug introduced in: ae8908bf8 kadmin: Add disallow-client attribute that I had fixed via: f6ac4ee86 roken: Fix parse flags bug which wasn't a bug at all. --- kadmin/util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kadmin/util.c b/kadmin/util.c index 0e494e8bd..3bedaf9f4 100644 --- a/kadmin/util.c +++ b/kadmin/util.c @@ -47,6 +47,10 @@ get_response(const char *prompt, const char *def, char *buf, size_t len); */ struct units kdb_attrs[] = { + { "disallow-client", KRB5_KDB_DISALLOW_CLIENT }, + { "virtual", KRB5_KDB_VIRTUAL }, + { "virtual-keys", KRB5_KDB_VIRTUAL_KEYS }, + { "materialize", KRB5_KDB_MATERIALIZE }, { "allow-digest", KRB5_KDB_ALLOW_DIGEST }, { "allow-kerberos4", KRB5_KDB_ALLOW_KERBEROS4 }, { "trusted-for-delegation", KRB5_KDB_TRUSTED_FOR_DELEGATION }, @@ -54,7 +58,6 @@ struct units kdb_attrs[] = { { "new-princ", KRB5_KDB_NEW_PRINC }, { "support-desmd5", KRB5_KDB_SUPPORT_DESMD5 }, { "pwchange-service", KRB5_KDB_PWCHANGE_SERVICE }, - { "disallow-client", KRB5_KDB_DISALLOW_CLIENT }, { "disallow-svr", KRB5_KDB_DISALLOW_SVR }, { "requires-pw-change", KRB5_KDB_REQUIRES_PWCHANGE }, { "requires-hw-auth", KRB5_KDB_REQUIRES_HW_AUTH },