Tôi cố gắng để lấy LDAP tài thuộc tính nội bộ, nhưng không thể tìm cách lấy chúngBắt Thuộc tính nội bộ của LDAP Object
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"));
//so on...
}
// so on
từ LDAP, tôi muốn lấy mỗi nhân viên/người thuộc tính nội bộ quá. Bởi mặc định, nó không trả lại thuộc tính nội bộ [ví dụ: createTimestamp]
Cảm ơn, đã giải quyết được sự cố của tôi – Reddy