User guide
Registering a Role Configuration in the SSO Repository
A-3
Registering a Role Configuration in the SSO
Repository
This sample program assumes the environment setup below. Change the setup according to the actual
environment used.
• The public directory at creation of the repository is "ou=interstage,o=fujitsu,dc=com".
• The storage location of role information is "ou=Role,ou=SSO ACI,ou=interstage,o=fujitsu,dc=com".
• The relevant role name is specified for "roleName" in java.lang.String.
• The result of common preprocessing is used as the value of "ctx".
Description of User Program
Example
Close the connection between the sample program and the repository made by the pre-processing.
Use the result obtained by the common pre-processing as the value of "ctx".
Pre-processing
:
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);
:
Postprocessing