When you create an authentication scheme, you base the scheme on an authentication scheme template. To do so, you first retrieve an existing template and then specify the template object in the call to CreateAuthScheme().
The following example creates an authentication scheme based on the template HTML Form Template and accepts all defaults:
use Netegrity::PolicyMgtAPI; $policyapi = Netegrity::PolicyMgtAPI‑>New(); $session = $policyapi‑>CreateSession("adminid", "adminpwd"); #Retrieve the object for the authentication scheme template $template=$session‑>GetAuthScheme("HTML Form Template"); #Create the authentication scheme $scheme=$session‑>CreateAuthScheme("HTML Authentication",$template); if ($scheme == undef) { print "\nCouldn't create the authentication scheme."; } else { print "\nCreated authentication scheme ".$scheme‑>Name(); }
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |