Symantec Access Management

  • 1.  how to fetch the OID's of affiliate domain using perl

    Posted Sep 22, 2016 03:47 AM

    Hi Guys,

     

    I have been working on fetching the OID's using SiteMinder java SDK, but that does not have the capability to fetch the affiliate domain OID's. So I am interested in fetching the OID's using perl.

     

    Anyone has idea how to fetch the OID's of affiliate domain using perl? Appreciate you help

     

    Thanks,

    Ravi



  • 2.  Re: how to fetch the OID's of affiliate domain using perl

    Broadcom Employee
    Posted Sep 26, 2016 03:53 PM

    Hi Ravi,

     

    I do not see a way to obtain object OIDs within the Perl CLI.



  • 3.  Re: how to fetch the OID's of affiliate domain using perl

    Posted Sep 28, 2016 03:05 AM

    Hi Gresa,

     

    Are you sure that we cannot fetch the OID's of affiliate domain using perl? because that is the basic script for siteminder since long back which is used in automating the most of siteminder things.

     

    If we cannot fetch the OID's of affiliate domain using perl CLI, do we have any other way using C or C++? I need this OID's to fetch using SDK at any cost .

     

    Thanks,

    Ravi



  • 4.  Re: how to fetch the OID's of affiliate domain using perl
    Best Answer

    Posted Sep 28, 2016 09:25 AM
      |   view attached

    Hi Ravi,

     

    Kindly check the below mentioned pseudo-code which might help you for getting the affiliate domain details.


    # 1. Initialize the API
    use Netegrity::PolicyMgtAPI;
    $policyapi = Netegrity::PolicyMgtAPI‑>New();
    $session = $policyapi‑>CreateSession("adminid", "adminpwd");

     

    # 2. Get an existing affiliate domain
    $affiliate = $affdomain‑>GetAffiliate("affname");

     

    Please refer below mentioned bookself link for more details.
    https://support.ca.com/cadocs/0/CA%20SiteMinder%2012%2052-ENU/Bookshelf_Files/HTML/idocs/245016.html#o243996

     

    Also I attached the sample perl code for creating an affiliate domain for your reference.

     

    Thanks,

    Sharan

    Attachment(s)

    zip
    AffiliateDemo.pl.zip   1 KB 1 version