$junk ) $current_attrs[] = strtolower($attr); // grab the required attributes for the new objectClass $oclass = get_schema_objectclass( $server_id, $new_oclass ); if( $oclass ) $must_attrs = $oclass->getMustAttrs(); else $must_attrs = array(); // We don't want any of the attr meta-data, just the string foreach( $must_attrs as $i => $attr ) $must_attrs[$i] = $attr->getName(); // 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" ); } ?>