summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2018-09-17 18:50:55 -0700
committerJoseph Sutton <jsutton@samba.org>2022-01-19 20:50:35 +0000
commitc7bd176f4cb5d058337b64819858eca2764bd88e (patch)
treeacb4c511403f52d8ce49379cdd75eaacd1299009
parent0d107482b5ade604b1edffb55b111b29e6028884 (diff)
downloadsamba-c7bd176f4cb5d058337b64819858eca2764bd88e.tar.gz
s4:kdc: Move calls using the samba4 name to be right after each other
These all need to be in sync NOTE: THIS COMMIT WON'T COMPILE/WORK ON ITS OWN! Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source4/kdc/kdc-heimdal.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/kdc/kdc-heimdal.c b/source4/kdc/kdc-heimdal.c
index 02adb8d8dc4..f3bab824655 100644
--- a/source4/kdc/kdc-heimdal.c
+++ b/source4/kdc/kdc-heimdal.c
@@ -438,12 +438,6 @@ static void kdc_post_fork(struct task_server *task, struct process_details *pd)
return;
}
- ret = krb5_kt_register(kdc->smb_krb5_context->krb5_context, &hdb_kt_ops);
- if(ret) {
- task_server_terminate(task, "kdc: failed to register keytab plugin", true);
- return;
- }
-
kdc->keytab_name = talloc_asprintf(kdc, "HDB:samba4:&%p", kdc->base_ctx);
if (kdc->keytab_name == NULL) {
task_server_terminate(task,
@@ -452,6 +446,12 @@ static void kdc_post_fork(struct task_server *task, struct process_details *pd)
return;
}
+ ret = krb5_kt_register(kdc->smb_krb5_context->krb5_context, &hdb_kt_ops);
+ if(ret) {
+ task_server_terminate(task, "kdc: failed to register keytab plugin", true);
+ return;
+ }
+
/* Register WinDC hooks */
ret = krb5_plugin_register(kdc->smb_krb5_context->krb5_context,
PLUGIN_TYPE_DATA, "windc",