I am trying to get the internal attributes of an LDAP user, but could not find a way to retrieve
DirContext ctx = this.getDirContext(); List<Employee> list = new ArrayList<Employee>(); NamingEnumeration<SearchResult> results = null; try { SearchControls controls = new SearchControls(); controls.setSearchScope(SearchControls.SUBTREE_SCOPE); results = ctx.search("", "(objectclass=person)", controls); while (results.hasMore()) { SearchResult searchResult = results.next(); Attributes attributes = searchResult.getAttributes(); String fullName = this.getValue(attributes.get("cn"));
from LDAP, I also want to get the internal attributes of each employee / person. By default, it does not return internal attributes [ex: createTimestamp]

source share