mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Ensure the hdb_method structure is not on the stack.
We supply this to krb5 as a plugin, so we must keep it around as long as the krb5_context. Andrew Bartlett
This commit is contained in:
parent
71022daac2
commit
c41cc67722
@ -657,6 +657,11 @@ static NTSTATUS kdc_check_generic_kerberos(struct irpc_message *msg,
|
||||
}
|
||||
|
||||
|
||||
static struct hdb_method hdb_samba4 = {
|
||||
.interface_version = HDB_INTERFACE_VERSION,
|
||||
.prefix = "samba4:",
|
||||
.create = hdb_samba4_create
|
||||
};
|
||||
|
||||
/*
|
||||
startup the kdc task
|
||||
@ -667,11 +672,6 @@ static void kdc_task_init(struct task_server *task)
|
||||
NTSTATUS status;
|
||||
krb5_error_code ret;
|
||||
struct interface *ifaces;
|
||||
struct hdb_method hdb_samba4 = {
|
||||
.interface_version = HDB_INTERFACE_VERSION,
|
||||
.prefix = "samba4:",
|
||||
.create = hdb_samba4_create
|
||||
};
|
||||
|
||||
switch (lp_server_role(task->lp_ctx)) {
|
||||
case ROLE_STANDALONE:
|
||||
|
Loading…
Reference in New Issue
Block a user