This function takes the following parameters:
The old DN value.
The new RDN value.
If not NULL, will be the DN of the future superior entry of the new DN, which will be worked out by adding the value in newrdn in front of the content of this parameter.