In a previous version of ldaptive (1.2.1) there was the capability to register a SearchEntryHandler on a SearchRequest for use with the DirSyncClient.
In the latest version of the library only a SearchOperation allows for registering SearchEntryHandlers.
Since the DirSyncClient only accepts a SearchRequest there is no longer support for processing binary attributes such as objectGUID with the ObjectGuidHandler.
In order to workaround this I am using a combination of:
SearchRequest searchRequest = new SearchRequest(getBaseDistinguishedName(), getSearchFilter());
searchRequest.setBinaryAttributes("objectGUID");
and
for (LdapEntry entry : response.getEntries()) {
objectGuidHandler.apply(entry);
....
}
Alternatively I could check the type and do the conversion manually:
Is there a better approach for getting the "objectGUID" as a string using the DirSyncClient?