This function returns -1 if there is no RDN in the index position, or the real position of the retrieved RDN if the operation was successful.