aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2015-07-03 20:13:43 -0400
committerGreg Hudson <ghudson@mit.edu>2015-07-06 15:07:52 -0400
commita99e5565e99b83a86002332e39938aa6bed6a26a (patch)
treed508a5b1615cf19541acb8771ce0ce93067d8275 /src/plugins
parent1be1c3593e6a50cbed2e5d2d52b98d4413f669d4 (diff)
downloadkrb5-a99e5565e99b83a86002332e39938aa6bed6a26a.zip
krb5-a99e5565e99b83a86002332e39938aa6bed6a26a.tar.gz
krb5-a99e5565e99b83a86002332e39938aa6bed6a26a.tar.bz2
Add rename method to kadm5_hook
Bump the minor version of the kadm5_hook interface to 2 and add a rename method. Invoke the rename method in kadm5_rename_principal() like we do for other libkadm5srv operations. Partly based on a patch from John Hascall. ticket: 8171
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/kadm5_hook/test/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/kadm5_hook/test/main.c b/src/plugins/kadm5_hook/test/main.c
index 48b549c..1ac2cb0 100644
--- a/src/plugins/kadm5_hook/test/main.c
+++ b/src/plugins/kadm5_hook/test/main.c
@@ -81,6 +81,13 @@ create(krb5_context context,
return 0;
}
+static kadm5_ret_t
+rename_hook(krb5_context context, kadm5_hook_modinfo *modinfo, int stage,
+ krb5_principal oprinc, krb5_principal nprinc)
+{
+ log_call(context, "rename", stage, oprinc);
+ return 0;
+}
krb5_error_code
kadm5_hook_test_initvt(krb5_context context, int maj_ver, int min_ver,
@@ -97,5 +104,6 @@ kadm5_hook_test_initvt(krb5_context context, int maj_ver, int min_ver,
vt->name = "test";
vt->chpass = chpass;
vt->create = create;
+ vt->rename = rename_hook;
return 0;
}