From 59186e86c335ab68ace5120b7c8995dc7f70f991 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 19 May 2010 21:03:40 +0000 Subject: [PATCH] -Apply env variable fixes from activedirectory.pm plugin to Template git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6180 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Template.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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');