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

Returns

This function returns the first value in the attribute converted to an unsigned long. The function returns 0 if the entry does not contain the attribute specified.