Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Guide de l'utilisateur Page 301

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 332
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 300
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
Vue de la page 300
1 2 ... 296 297 298 299 300 301 302 303 304 305 306 ... 331 332

Commentaires sur ces manuels

Pas de commentaire