$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 ) { include 'header.php'; ?>



$attr ) { ?>


$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" ); } ?>