Server:     Distinguished Name:

$new_val ) { // did the user change the field? if( $new_val != $old_values[ $attr ] ) { // special case for userPassword attributes if( 0 == strcasecmp( $attr, 'userPassword' ) ) { $enc_type = $_POST['enc_type']; $new_val = password_hash( $new_val, $enc_type ); } $update_array[ $attr ] = $new_val; } } //echo "
"; print_r( $update_array ); echo "
"; ?> 0 ) { ?>
Do you want to make these changes?

$new_val ) { $counter++ ?> \n\n"; } ?>
AttributeOld ValueNew Value
"; else echo htmlspecialchars( $old_values[ $attr ] ) . "
"; echo "
"; if( is_array( $new_val ) ) foreach( $new_val as $i => $v ) if( $v == '' ) { // remove it from the update array if it's empty unset( $update_array[ $attr ][ $i ] ); $update_array[ $attr ] = array_values( $update_array[ $attr ] ); } else echo htmlspecialchars( $v ) . "
"; else if( $new_val != '' ) echo htmlspecialchars( $new_val ) . "
"; echo "

$val ) { ?> $v ) { ?>
You made no changes. Go back.