(kadm5_s_delete_principal): add change to log
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4312 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -46,12 +46,16 @@ kadm5_s_delete_principal(void *server_handle, krb5_principal princ)
|
|||||||
kadm5_server_context *context = server_handle;
|
kadm5_server_context *context = server_handle;
|
||||||
kadm5_ret_t ret;
|
kadm5_ret_t ret;
|
||||||
hdb_entry ent;
|
hdb_entry ent;
|
||||||
|
|
||||||
ent.principal = princ;
|
ent.principal = princ;
|
||||||
ret = context->db->open(context->context, context->db, O_RDWR, 0);
|
ret = context->db->open(context->context, context->db, O_RDWR, 0);
|
||||||
if(ret) {
|
if(ret) {
|
||||||
krb5_warn(context->context, ret, "opening database");
|
krb5_warn(context->context, ret, "opening database");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
kadm5_log_delete (context,
|
||||||
|
princ);
|
||||||
|
|
||||||
ret = context->db->delete(context->context, context->db, &ent);
|
ret = context->db->delete(context->context, context->db, &ent);
|
||||||
context->db->close(context->context, context->db);
|
context->db->close(context->context, context->db);
|
||||||
return _kadm5_error_code(ret);
|
return _kadm5_error_code(ret);
|
||||||
|
Reference in New Issue
Block a user