$junk ) $current_attrs[] = strtolower($attr); // grab the required attributes for the new objectClass $must_attrs = get_schema_objectclasses( $server_id ); $must_attrs = $must_attrs[ strtolower($new_oclass) ]['must_attrs']; sort( $must_attrs ); // build a list of the attributes that this new objectClass requires, // but that the object does not currently contain $needed_attrs = array(); foreach( $must_attrs as $attr ) if( ! in_array( strtolower($attr), $current_attrs ) ) $needed_attrs[] = $attr; if( count( $needed_attrs ) > 0 ) { ?>

New Required Attributes

This action requires you to add new attribute1?'s':''); ?>

Instrucitons: In order to add the objectClass to the object , you must specify new attribute1?'s':''); ?> that this objectClass requires. You can do so in this form.

$attr ) { ?>
New Required Attributes


$new_oclass ) ); if( ! $add_res ) pla_error( "Could not perform ldap_mod_add operation.", ldap_error( $ds ), ldap_errno( $ds ) ); else header( "Location: edit.php?server_id=$server_id&dn=$encoded_dn" ); } ?>