--- /dev/null
+<samba:parameter name="mit kdc config"
+ context="G"
+ type="string"
+ advanced="1"
+ xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
+<description>
+ <para>
+ This option allows to use a different MIT KDC config file than using
+ the system default.
+ </para>
+</description>
+
+<value type="example">/etc/samba/kdc.conf</value>
+</samba:parameter>
{
struct tevent_req *subreq;
const char * const *kdc_cmd;
+ const char *kdc_config;
NTSTATUS status;
task_server_set_title(task, "task[mitkdc_parent]");
break;
}
+ kdc_config = lpcfg_mit_kdc_config(task->lp_ctx, task);
+ if (kdc_config != NULL && kdc_config[0] != '\0') {
+ /* Do not overwrite the variable if already set! */
+ setenv("KRB5_KDC_PROFILE", kdc_config, 0);
+ }
+
/* start it as a child process */
kdc_cmd = lpcfg_mit_kdc_command(task->lp_ctx);