version 1.30, 2006/05/16 17:47:20
|
version 1.31, 2006/07/21 18:44:08
|
|
|
// Get the provider module from the ProviderIdContainer to see if | // Get the provider module from the ProviderIdContainer to see if |
// we can optimize out the transmission of this instance to the | // we can optimize out the transmission of this instance to the |
// Provider Agent. (See the _providerModuleCache description.) | // Provider Agent. (See the _providerModuleCache description.) |
try |
if(request->operationContext.contains(ProviderIdContainer::NAME)) |
{ | { |
ProviderIdContainer pidc = request->operationContext.get( | ProviderIdContainer pidc = request->operationContext.get( |
ProviderIdContainer::NAME); | ProviderIdContainer::NAME); |
|
|
doProviderModuleOptimization = true; | doProviderModuleOptimization = true; |
} | } |
} | } |
catch (...) |
|
{ |
|
// No ProviderIdContainer to optimize |
|
} |
|
| |
// | // |
// Write the message to the pipe | // Write the message to the pipe |
|
|
| |
if (userContext == PG_PROVMODULE_USERCTXT_REQUESTOR) | if (userContext == PG_PROVMODULE_USERCTXT_REQUESTOR) |
{ | { |
try |
if(request->operationContext.contains(IdentityContainer::NAME)) |
{ | { |
// User Name is in the OperationContext | // User Name is in the OperationContext |
IdentityContainer ic = (IdentityContainer) | IdentityContainer ic = (IdentityContainer) |
request->operationContext.get(IdentityContainer::NAME); | request->operationContext.get(IdentityContainer::NAME); |
userName = ic.getUserName(); | userName = ic.getUserName(); |
} | } |
catch (Exception&) |
//else |
{ |
//{ |
// If no IdentityContainer is present, default to the CIM | // If no IdentityContainer is present, default to the CIM |
// Server's user context | // Server's user context |
} |
//} |
| |
// If authentication is disabled, use the CIM Server's user context | // If authentication is disabled, use the CIM Server's user context |
if (!userName.size()) | if (!userName.size()) |