(LDAP_entry2mods): make sure krb5KeyVersionNumber is added on new entires
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13884 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -469,7 +469,7 @@ LDAP_entry2mods(krb5_context context, HDB * db, hdb_entry * ent,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_heimdal_entry && ent->kvno != orig.kvno) {
|
if (is_heimdal_entry && (ent->kvno != orig.kvno || is_new_entry)) {
|
||||||
rc = asprintf(&tmp, "%d", ent->kvno);
|
rc = asprintf(&tmp, "%d", ent->kvno);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
krb5_set_error_string(context, "asprintf: out of memory");
|
krb5_set_error_string(context, "asprintf: out of memory");
|
||||||
|
Reference in New Issue
Block a user