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

Returns

This function returns 0 for success, in which case result contains the result of the comparison.

Otherwise, this function returns the following: