Write log entry after store is successful.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20608 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-05-08 07:11:48 +00:00
parent 6e20758fda
commit 18480ebd4b

View File

@@ -92,14 +92,17 @@ change(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);
out2:
hdb_free_entry(context->context, &ent);
out:
@@ -170,14 +173,17 @@ kadm5_s_chpass_principal_with_key(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);
out2:
hdb_free_entry(context->context, &ent);
out: