Symantec Access Management

Expand all | Collapse all

Perl CLI PolicyMgtSAMLServiceProvider->Property("SAML_NAME")

  • 1.  Perl CLI PolicyMgtSAMLServiceProvider->Property("SAML_NAME")

    Posted Apr 05, 2017 06:14 AM

    I am trying to use perl to get the configs for our federations, and I get into problems that I do not know why.

    For me it seems like I am using a perl version that is not documented, or that I have been reading the wrong documentation.

     

    I use the following script:

     

    ------------------------------------------------------

    $policymgtapi = Netegrity::PolicyMgtAPI->New();
    $session = $policymgtapi->CreateSession($adminName, $adminPwd);

    @affdoms = $session->GetAllAffDomains();

    foreach $affdom (@affdoms) {
    print "Name: " . $affdom->Name() . "\n";

    @sps = $affdom->GetAllSAMLServiceProviders();

    foreach $sp (@sps) {
    print "SAML_SP_AUTHENTICATION_LEVEL: " . sp->Property("SAML_SP_AUTHENTICATION_LEVEL") . "\n";
    print "Name: " . sp->Property("SAML_NAME") . "\n";

     

    @users = $sp->GetAllUsers();
    foreach $user (@users){
    print "Path: " . $user->GetPath() . "\n";
    }

    ------------------------------------------------------

     

    When the script comes to the bold lines, I get a 

    Can't locate object method "Property" via package "sp" (perhaps you forgot to load "sp"?) at <script> line <##>.

     

    But I am able to call GetAllUsers() with success.

    And in  CLI SAML 2.0 Service Provider Methods, it looks like the Property should have a PropertyMethod.

     

    So now I do not understand anything.

    I aim at getting the Minimum Authentication Level: for all our federations.

     

     

    We are running 12.52SP1 of the policyserver

     

    /Per



  • 2.  Re: Perl CLI PolicyMgtSAMLServiceProvider->Property("SAML_NAME")
    Best Answer

    Posted Apr 05, 2017 06:29 AM

    Sorry, I saw now that i used sp instead of $sp.