krb5 commit [krb5-1.17]: Set lockdown attribute when creating LDAP KDB

Greg Hudson ghudson at mit.edu
Tue Nov 3 13:14:51 EST 2020


https://github.com/krb5/krb5/commit/3286cc45031141ce95f0a396b979831575054c58
commit 3286cc45031141ce95f0a396b979831575054c58
Author: Greg Hudson <ghudson at mit.edu>
Date:   Mon Aug 10 12:44:21 2020 -0400

    Set lockdown attribute when creating LDAP KDB
    
    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.
    
    (cherry picked from commit 6cdf7d82e74f21fb8a37efe6b1bba45744f891ba)
    
    ticket: 8936
    version_fixed: 1.17.2

 src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c b/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
index 5a745e2..1b79455 100644
--- a/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
+++ b/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
@@ -1338,7 +1338,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;


More information about the cvs-krb5 mailing list