version 1.26, 2013/07/02 04:33:11
|
version 1.27, 2013/07/11 12:32:22
|
|
|
| |
#ifndef PEGASUS_ZOS_SECURITY | #ifndef PEGASUS_ZOS_SECURITY |
// Only privileged user can execute this operation | // Only privileged user can execute this operation |
if ((userName != String::EMPTY) && !System::isPrivilegedUser(userName)) |
if ( userName.size() && !System::isPrivilegedUser(userName)) |
{ | { |
MessageLoaderParms parms( | MessageLoaderParms parms( |
"ControlProviders.UserAuthProvider.MUST_BE_PRIVILEGED_USER", | "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(); | PEG_METHOD_EXIT(); |
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_ACCESS_DENIED, parms); | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_ACCESS_DENIED, parms); |
} | } |