From 02f9cbedee9c558d611e34cc1dc0eb45d0896d92 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 19 May 2010 12:54:29 +0000 Subject: [PATCH] -Fix environment variable setup for openldap utilities git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6167 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/activedirectory.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/activedirectory.pm b/xCAT-server/lib/xcat/plugins/activedirectory.pm index 7fac50a4d..6c16f7733 100644 --- a/xCAT-server/lib/xcat/plugins/activedirectory.pm +++ b/xCAT-server/lib/xcat/plugins/activedirectory.pm @@ -23,8 +23,8 @@ sub handled_commands { } sub process_request { - $ENV{LDAPRC}='/etc/xcat/ad.ldaprc'; - $ENV{HOME}=''; + $ENV{LDAPRC}='ad.ldaprc'; #after examining openldap source, this is the best way to get their libraries to source /etc/xcat/ad.ldaprc + $ENV{HOME}='/etc/xcat'; my $request = shift; my $command = $request->{command}->[0]; $callback = shift;