]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Set lockdown attribute when creating LDAP KDB 1101/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 10 Aug 2020 16:44:21 +0000 (12:44 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 18 Aug 2020 16:17:57 +0000 (12:17 -0400)
In kdb5_ldap_util, set lockdown_keys on the special principals when
creating an LDAP KDB, as we do in kdb5_util when creating a regular
KDB.

ticket: 8936 (new)
tags: pullup
target_version: 1.18-next
target_version: 1.17-next

src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c

index ae1afd4a9c929f8b02862e3acad7e3b47937b135..bb5bae5baf54243e764a73e3985af1eb9e6f701a 100644 (file)
@@ -1304,7 +1304,7 @@ kdb_ldap_create_principal(krb5_context context, krb5_principal princ,
                                                      now, &db_create_princ)))
         goto cleanup;
 
-    entry.attributes = pblock->flags;
+    entry.attributes = pblock->flags | KRB5_KDB_LOCKDOWN_KEYS;
     entry.max_life = pblock->max_life;
     entry.max_renewable_life = pblock->max_rlife;
     entry.expiration = pblock->expiration;