Write log entry after store is successful.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20611 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -78,14 +78,17 @@ kadm5_s_randkey_principal(void *server_handle,
|
||||
if (ret)
|
||||
goto out2;
|
||||
|
||||
ret = context->db->hdb_store(context->context, context->db,
|
||||
HDB_F_REPLACE, &ent);
|
||||
if (ret)
|
||||
goto out2;
|
||||
|
||||
kadm5_log_modify (context,
|
||||
&ent.entry,
|
||||
KADM5_PRINCIPAL | KADM5_MOD_NAME | KADM5_MOD_TIME |
|
||||
KADM5_KEY_DATA | KADM5_KVNO | KADM5_PW_EXPIRATION |
|
||||
KADM5_TL_DATA);
|
||||
|
||||
ret = context->db->hdb_store(context->context, context->db,
|
||||
HDB_F_REPLACE, &ent);
|
||||
out3:
|
||||
if (ret) {
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user