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

Returns

This function returns 0 if rdn1 and rdn2 have the same RDN components, or -1 if they do not.