新しい認証方式によるレルムの更新
以下の例は、Acme North Domain ドメイン内のすべてのレルムに認証方式 HTML Authentication を割り当てます。
casso127jpjp
以下の例は、Acme North Domain ドメイン内のすべてのレルムに認証方式 HTML Authentication を割り当てます。
use Netegrity::PolicyMgtAPI;$policyapi = Netegrity::PolicyMgtAPI->New();$session = $policyapi->CreateSession("adminid", "adminpwd");$domain = $session->GetDomain("Acme North Domain");$authscheme=$session->GetAuthScheme("HTML Authentication");@realms=$domain->GetAllRealms();print "Updating these realms to auth scheme ".$authscheme->Name();foreach $realm(@realms) {$name=$realm->Name();if ($realm->AuthScheme($authscheme)==undef) {print "\n Couldn't update realm " . $name;}else {print "\n Realm ". $name;}}