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

Returns

This function returns 0 if successful, or -1 if an error occurs (for example, if an invalid ID is specified).