ページの先頭行へ戻る
Interstage Application Server シングル・サインオン運用ガイド
Interstage

B.1 ロール定義をSSOリポジトリに登録する

  本記述例では、次の環境を想定しています。ご使用の環境にあわせて変更してください。

ユーザプログラムの記述

          【前処
Attributes attrs = new BasicAttributes();
Attribute objectClass = new BasicAttribute("objectClass");
objectClass.add("top");
objectClass.add("ssoRole");
attrs.put(objectClass);
attrs.put("cn", roleName);
String dn = "cn=" + roleName + ",ou=Role,ou=SSO ACI,ou=interstage,o=fujitsu,dc=com";
ctx.createSubcontext(dn, attrs);
【後処