$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 ) { ?>