Symantec Access Management

  • 1.  SiteMinder Sm_AgentApi_IsProtected() & 'SM_AGENTAPI_NO'

    Posted Sep 26, 2017 09:10 AM

    Dear SiteMinder Experts,

     

    we are using SiteMinder together with IIS and Cognos 11 to authenticate our
    Cognos 11 users. Right now its a bit of a URL copy and pasting procedure to get
    to the Cognos 11 start page and on the way we get a SiteMinder error
    that I hope can be used to pin down the core issue.

     

    First we open the URL ending with .../bi/
    and see the SiteMinder message:
    CAM-AAA-0165 Sm_AgentApi_IsProtected() 'SM_AGENTAPI_NO'

     

    Secondly we have to paste in the following URL ending with ...bi/v1/disp

    which is rewritten again to to .../bi/

    and we arrive at our Cognos 11 website.

     

    I fear that something with our setup is wrong and would
    be very happy if someone has an idea.



  • 2.  Re: SiteMinder Sm_AgentApi_IsProtected() & 'SM_AGENTAPI_NO'
    Best Answer

    Broadcom Employee
    Posted Sep 26, 2017 01:02 PM

    Hi Philip,

    This is how documentation explains the call.

    Sm_AgentApi_IsProtected() - CA Single Sign-On - 12.52 SP1 - CA Technologies Documentation 

    Sm_AgentApi_IsProtected() - CA Single Sign-On - 12.52 SP1 - CA Technologies Documentation

    Checks if the defined resource is protected by CA Single Sign-on.

    Syntax

    int SM_EXTERN Sm_AgentApi_IsProtected (

       const void                             pHandle,

       const char*                            lpszClientIpAddr,

       const Sm_AgentApi_ResourceContext_t*   pResourceContext,

       Sm_AgentApi_Realm_t*                   pRealm

    );

     

    ParameterI/ODescription
    pHandleIAgent API session handle returned in parameter ppHandle of Sm_AgentApi_Init().
    lpszClientIpAddrIThe IP address of the client asking for the resource. This is an optional parameter.
    pResourceContextIA resource definition structure.
    pRealmO

    A realm definition structure. The resource is protected by the returned realm.

    Sm_AgentApi_IsProtected() - CA Single Sign-On - 12.52 SP1 - CA Technologies Documentation

    Return Values

    • SM_AGENTAPI_YES. The resource is protected.
    • SM_AGENTAPI_NO. The resource is not protected.
    • SM_AGENTAPI_NOCONNECTION. The initialization was not done.
    • SM_AGENTAPI_FAILURE. The server could not be reached.
    • SM_AGENTAPI_TIMEOUT. The function timed out.

    Example

    See the function SmAgentExample::Sm_IsProtected() in the example application smagentexample.cpp.

     

    Hope it helps.

     

    Hongxu



  • 3.  Re: SiteMinder Sm_AgentApi_IsProtected() & 'SM_AGENTAPI_NO'

    Posted Sep 27, 2017 09:23 AM

    Thanks! Investigating the protected resources was the right step.

    In our case it worked after we protected everything \.