Sun Java System Directory Server Enterprise Edition 6.3 Developer's Guide

Returns

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.