User guide

Appendix A: Samples of User Program Descriptions
A-6
al.add(index, null);
} else {
al.set(index, s);
}
}
data = (String[])al.toArray(new String[0]);
if( data == null || data.length == 0 ) {
continue;
}
Attributes attrs = new BasicAttributes();
Attribute objectClass = new BasicAttribute("objectClass");
objectClass.add("top");
objectClass.add("person");
objectClass.add("organizationalPerson");
objectClass.add("inetOrgPerson");
objectClass.add("ssoUser");
attrs.put(objectClass);
// Setting the values before ssoRoleName
for(int i = 0; i < INDEX_SSOROLENAME; i++ ) {
if( data[ i ] != null ) {
attrs.put( attributeNames[ i ], data[ i ] );
}
}
// Setting the value of ssoRoleName
Attribute ssoRoleName = new BasicAttribute( "ssoRoleName" );
for(int i = INDEX_SSOROLENAME; i < data.length; i++ ) {
if( data[ i ] != null ) {
ssoRoleName.add( data[ i ] );
}
}
if( ssoRoleName.size() > 0 ) {
attrs.put( ssoRoleName );
}
String dn = "cn=" + data[INDEX_RDN] +
",ou=User,ou=interstage,o=fujitsu,dc=com";
ctx.createSubcontext( dn, attrs );
}
:
Postprocessing