I got the following problem. There is working OpenDJ server, connection using UnboundID LDAP SKD for Java. I learned how to search for particular entries, but what is the way to obtain value of "entryUUID" attribute for a given entry? OpenDJ says that is one of "non-editable attributes" and I can't see any of those in SearchResultEntry object using getAttributes() method.
I mean something like:
public String getUserUUID(String cn) {
SearchResult sr = connection.search(dn, SearchScope.SUB, Filter.createEqualityFilter("cn", cn));
if (sr.getEntryCount() > 0){
return sr.getSearchEntries().get(0).getAttributeValue("entryUUID");
}
}
But in attributes map in SearchResultEntry there is no parameters "non-editable parameters"