This is needed for all environments not just "samba".
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
{
my ($proc_name, $env_vars) = @_;
my $proc_envs = {
+ RESOLV_CONF => $env_vars->{RESOLV_CONF},
KRB5_CONFIG => $env_vars->{KRB5_CONFIG},
KRB5CCNAME => "$env_vars->{KRB5_CCACHE}.$proc_name",
SELFTEST_WINBINDD_SOCKET_DIR => $env_vars->{SELFTEST_WINBINDD_SOCKET_DIR},
# the samba process takes some additional env variables (compared to s3)
my $samba_envs = Samba::get_env_for_process("samba", $env_vars);
- $samba_envs->{RESOLV_CONF} = $env_vars->{RESOLV_CONF};
$samba_envs->{UID_WRAPPER} = "1";
if (defined($ENV{MITKRB5})) {
$samba_envs->{KRB5_KDC_PROFILE} = $env_vars->{MITKDC_CONFIG};