spring-projects / spring-ldap

Spring LDAP
https://spring.io/spring-ldap
Apache License 2.0
342 stars 481 forks source link

Support operational attributes (like entryUUID) for ODM when calling LdapTemplate.findByDn(Name, Class) #424

Closed kwin closed 7 years ago

kwin commented 7 years ago

Currently mapping fails for operational attributes when LdapTemplate.findByDn(Name, Class) is called. Basically the list of all interesting attributes should be extracted beforehand and those should be explicitly requested internally through a call of T lookup(final Name dn, final String[] attributes, final ContextMapper<T> mapper) instead of just calling the simple T lookup(final Name dn, final ContextMapper<T> mapper) in https://github.com/spring-projects/spring-ldap/blob/master/core/src/main/java/org/springframework/ldap/core/LdapTemplate.java#L1695

kwin commented 7 years ago

This is a duplicate of #347.