EssGetEssbaseSecurityMode

Displays the type of security in use: native or Shared Services mode.

Syntax

ESS_FUNC_M EssGetEssbaseSecurityMode (hCtx, pMode);
ParameterData TypeDescription

hCtx

ESS_HCTX_T

API context handle (input).

pMode

ESS_PSECURITY_MODE_T

Address of variable to recieve type of security in use.

Return Value

Returns 0 if successful; otherwise, returns an error.

Example

/*
ESS_FUNC_M EssGetEssbaseSecurityMode (ESS_HCTX_T hCtx,
                                      ESS_PSECURITY_MODE_T mode);
*/
ESS_FUNC_M ESS_SS_GetEssbaseSecurityMode(ESS_HCTX_T  hCtx)      
{
   ESS_STS_T           sts = ESS_STS_NOERR;
   ESS_SECURITY_MODE_T mode;

   sts = EssGetEssbaseSecurityMode(hCtx, &mode);

   if(sts)
   {
      printf("Failed to get Essbase Security mode.\n");
   }
   else
   {
      printf("Essbase Security Mode            : %d\n", mode);
   }
   return(sts);
}

See also an extended Shared Services Migration and User Management API Example