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

Returns

This function returns the index of the RDN that follows the RDN matching the contents of the parameters type and value. If no RDN stored in rdn matches the given type/value pair, -1 is returned.