Currently we are doing something like:
Attributes attributes = directoryConnection.find(filter, false);
if (attributes == null) {
// then the object does not exist
}
i think this is not efficient, we don't need to retrieve the whole attributes (they could be a few thousends in the case of a group object... i just want to know if the object does exist or not)
is there a better way to check if the object does exist? i can use the cn of the object or the whole dn of it