summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Pegasus/ControlProviders/UserAuthProvider/UserAuthProvider.cpp6
-rw-r--r--src/Pegasus/Server/ShutdownProvider.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/Pegasus/ControlProviders/UserAuthProvider/UserAuthProvider.cpp b/src/Pegasus/ControlProviders/UserAuthProvider/UserAuthProvider.cpp
index 04ee04e..0c5a1ad 100644
--- a/src/Pegasus/ControlProviders/UserAuthProvider/UserAuthProvider.cpp
+++ b/src/Pegasus/ControlProviders/UserAuthProvider/UserAuthProvider.cpp
@@ -110,13 +110,13 @@ void UserAuthProvider::_verifyAuthorization(const String& user)
PEG_METHOD_ENTER(TRC_CONFIG,
"UserAuthProvider::_verifyAuthorization()");
- if ( System::isPrivilegedUser(user) == false )
+ if ( user.size() && !System::isPrivilegedUser(user) )
{
- PEG_METHOD_EXIT();
MessageLoaderParms parms(
"ControlProviders.UserAuthProvider."
"MUST_BE_PRIVILEGED_USER",
- "Must be a privileged user to execute this CIM operation.");
+ "Superuser authority is required to run this CIM operation.");
+ PEG_METHOD_EXIT();
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_ACCESS_DENIED,parms);
}
diff --git a/src/Pegasus/Server/ShutdownProvider.cpp b/src/Pegasus/Server/ShutdownProvider.cpp
index 90a1d3d..9563726 100644
--- a/src/Pegasus/Server/ShutdownProvider.cpp
+++ b/src/Pegasus/Server/ShutdownProvider.cpp
@@ -85,11 +85,11 @@ void ShutdownProvider::invokeMethod(
#ifndef PEGASUS_ZOS_SECURITY
// Only privileged user can execute this operation
- if ((userName != String::EMPTY) && !System::isPrivilegedUser(userName))
+ if ( userName.size() && !System::isPrivilegedUser(userName))
{
MessageLoaderParms parms(
"ControlProviders.UserAuthProvider.MUST_BE_PRIVILEGED_USER",
- "Must be a privileged user to execute this CIM operation.");
+ "Superuser authority is required to run this CIM operation.");
PEG_METHOD_EXIT();
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_ACCESS_DENIED, parms);
}