認証方式テンプレートのデフォルト値の表示
以下のスクリプトは、認証スキーム テンプレートである HTML Form Template 用のデフォルト値を表示します。
casso127jpjp
以下のスクリプトは、認証スキーム テンプレートである HTML Form Template 用のデフォルト値を表示します。
認証方式を作成することは必要ではありません。スクリプトは、以下のようにテンプレート用の認証方式オブジェクトを取得するために GetAuthScheme() を使用し、次にオブジェクトのデフォルト プロパティを出力します。
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");print "\nDefault values for template " . $template->Name();print "\n Type:\t" . $template->Type()->Name();print "\n Description:\t" . $template->Description();print "\n Protection level:\t" . $template->ProtectionLevel();print "\n Library:\t" . $template->CustomLib();print "\n Parameter:\t" . $template->CustomParam();print "\n Shared secret:\t" . $template->CustomSecret();print "\n Is template?:\t" . $template->IsTemplate();print "\n Is used by admin?:\t" . $template->IsUsedByAdmin();print "\n Save credentials?:\t" . $template->SaveCredentials();print "\n Is Radius:\t" . $template->IsRadius();print "\n Ignore pwd ck?:\t" . $template->IgnorePwd();