httpkadmind: Enable materialization
authorNicolas Williams <nico@twosigma.com>
Mon, 25 Apr 2022 22:41:40 +0000 (17:41 -0500)
committerNicolas Williams <nico@twosigma.com>
Tue, 26 Apr 2022 03:24:52 +0000 (22:24 -0500)
kdc/httpkadmind.c
tests/kdc/check-httpkadmind.in

index a625f37e02f3f96d69462b162d948143d4a81345..01c6676e28e244bc62454e17e40bd5672f383f44 100644 (file)
@@ -1423,9 +1423,6 @@ get_keys1(kadmin_request_desc r, const char *pname)
     } else if (ret == 0 && r->materialize &&
                (princ.attributes & KRB5_KDB_VIRTUAL)) {
 
-#ifndef MATERIALIZE_NOTYET
-        ret = ENOTSUP;
-#else
         if (read_only)
             ret = KADM5_READ_ONLY;
         else
@@ -1454,7 +1451,6 @@ get_keys1(kadmin_request_desc r, const char *pname)
         if (ret == 0)
             ret = kadm5_create_principal(r->kadm_handle, &princ, mask, "");
         refetch = 1;
-#endif
     } /* else create/materialize q-params are superfluous */
 
     /* Handle rotate / revoke options */
index 063ccdf4d034d940b535aa26ca288cb5adffd657..b35e2837c4c889e9c74814ae9e5d37b07e925286 100644 (file)
@@ -437,7 +437,6 @@ ${ktutil} -k "${objdir}/extracted_keytab" list --keys > extracted_keytab.kadmin
 cmp extracted_keytab.kadmin extracted_keytab.rest ||
     { echo "Keytabs for $p don't match!"; exit 1; }
 
-if false; then
 hn=bar.ns.${domain}
 p=HTTP/$hn
 echo "Checking materialization of virtual principal ($p)"
@@ -456,7 +455,6 @@ ${ktutil} -k "${objdir}/extracted_keytab" list --keys > extracted_keytab.kadmin
     { echo "Failed to list keytab for $p"; exit 1; }
 cmp extracted_keytab.kadmin extracted_keytab.rest ||
     { echo "Keytabs for $p don't match!"; exit 1; }
-fi
 
 echo "Starting secondary httpkadmind to test HTTP redirection"
 ${httpkadmind2} --primary-server-uri=http://localhost:$restport         \