From d949f945c1101f46679a52069896962a1192102c Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 13 Oct 2009 13:06:42 +0000
Subject: [PATCH] Fix for issue 4273 (server does not work as service if Windows UAC enabled in Windows Server 2008) The problem was that the code assumed that the only windows OS supporting UAC was Windows Vista.  This was the case before Windows 2008 came out. The fix consists on creating a method that allows identifying which OS versions of vista support UAC and which do not.

---
 opendj-sdk/opends/src/server/org/opends/server/tools/StopWindowsService.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/StopWindowsService.java b/opendj-sdk/opends/src/server/org/opends/server/tools/StopWindowsService.java
index 3066e22..0cf21e9 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/StopWindowsService.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/StopWindowsService.java
@@ -119,7 +119,7 @@
     else
     {
       String[] cmd;
-      if (SetupUtils.isVista())
+      if (SetupUtils.hasUAC())
       {
         cmd= new String[] {
             ConfigureWindowsService.getLauncherBinaryFullPath(),

--
Gitblit v1.10.0