Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Guía de usuario Pagina 301

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 332
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 300
1 2 ... 296 297 298 299 300 301 302 303 304 305 306 ... 331 332

Comentarios a estos manuales

Sin comentarios