version 1.92, 2006/11/15 20:37:27
|
version 1.92.4.1, 2008/01/09 12:30:55
|
|
|
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
// | // |
//============================================================================== | //============================================================================== |
// |
//NOCHKSRC |
// Author: Yi Zhou (yi_zhou@hp.com) | // Author: Yi Zhou (yi_zhou@hp.com) |
// | // |
// Modified By: Chip Vincent (cvincent@us.ibm.com) | // Modified By: Chip Vincent (cvincent@us.ibm.com) |
|
|
userName = String::EMPTY; | userName = String::EMPTY; |
} | } |
| |
|
#ifndef PEGASUS_OS_ZOS |
if ((userName != String::EMPTY) && !System::isPrivilegedUser(userName)) | if ((userName != String::EMPTY) && !System::isPrivilegedUser(userName)) |
{ | { |
//l10n | //l10n |
|
|
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.SUPERUSER_PRIVILEGE_REQUIRED_MODIFY_REGISTRATION", | "ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.SUPERUSER_PRIVILEGE_REQUIRED_MODIFY_REGISTRATION", |
"You must have superuser privilege to modify the registration.")); | "You must have superuser privilege to modify the registration.")); |
} | } |
|
#endif |
| |
if(!instanceReference.getNameSpace().equal (PEGASUS_NAMESPACENAME_INTEROP)) | if(!instanceReference.getNameSpace().equal (PEGASUS_NAMESPACENAME_INTEROP)) |
{ | { |
|
|
userName = String::EMPTY; | userName = String::EMPTY; |
} | } |
| |
|
#ifndef PEGASUS_OS_ZOS |
if ((userName != String::EMPTY) && !System::isPrivilegedUser(userName)) | if ((userName != String::EMPTY) && !System::isPrivilegedUser(userName)) |
{ | { |
//l10n | //l10n |
|
|
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.SUPERUSER_PRIVILEGE_REQUIRED_REGISTER_PROVIDERS", | "ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.SUPERUSER_PRIVILEGE_REQUIRED_REGISTER_PROVIDERS", |
"You must have superuser privilege to register providers.")); | "You must have superuser privilege to register providers.")); |
} | } |
|
#endif |
CIMName className = instanceReference.getClassName(); | CIMName className = instanceReference.getClassName(); |
CIMNamespaceName nameSpace = instanceReference.getNameSpace(); | CIMNamespaceName nameSpace = instanceReference.getNameSpace(); |
| |
|
|
userName = String::EMPTY; | userName = String::EMPTY; |
} | } |
| |
|
#ifndef PEGASUS_OS_ZOS |
if ((userName != String::EMPTY) && !System::isPrivilegedUser(userName)) | if ((userName != String::EMPTY) && !System::isPrivilegedUser(userName)) |
{ | { |
//l10n | //l10n |
|
|
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.SUPERUSER_PRIVILEGE_REQUIRED_UNREGISTER_PROVIDERS", | "ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.SUPERUSER_PRIVILEGE_REQUIRED_UNREGISTER_PROVIDERS", |
"You must have superuser privilege to unregister providers.")); | "You must have superuser privilege to unregister providers.")); |
} | } |
|
#endif |
if(!instanceReference.getNameSpace().equal (PEGASUS_NAMESPACENAME_INTEROP)) | if(!instanceReference.getNameSpace().equal (PEGASUS_NAMESPACENAME_INTEROP)) |
{ | { |
throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, | throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, |
|
|
userName = String::EMPTY; | userName = String::EMPTY; |
} | } |
| |
|
#ifndef PEGASUS_OS_ZOS |
if ((userName != String::EMPTY) && !System::isPrivilegedUser(userName)) | if ((userName != String::EMPTY) && !System::isPrivilegedUser(userName)) |
{ | { |
//l10n | //l10n |
|
|
"ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.SUPERUSER_PRIVILEGE_REQUIRED_DISABLE_ENABLE_PROVIDERS", | "ControlProviders.ProviderRegistrationProvider.ProviderRegistrationProvider.SUPERUSER_PRIVILEGE_REQUIRED_DISABLE_ENABLE_PROVIDERS", |
"You must have superuser privilege to disable or enable providers.")); | "You must have superuser privilege to disable or enable providers.")); |
} | } |
|
#endif |
if(!objectReference.getNameSpace().equal (PEGASUS_NAMESPACENAME_INTEROP)) | if(!objectReference.getNameSpace().equal (PEGASUS_NAMESPACENAME_INTEROP)) |
{ | { |
throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, | throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED, |