diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index 2796563c6..1204ffe26 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -100,7 +100,8 @@ sub subvars { } sub machinepassword { my $domaintab = xCAT::Table->new('domain'); - $ENV{LDAPCONF}='/etc/xcat/ad.ldaprc'; + $ENV{HOME}='/etc/xcat'; + $ENV{LDAPRC}='ad.ldaprc'; my $ou; if ($domaintab) { my $ouent = $domaintab->getNodeAttribs('node','ou');