searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
NamingEnumeration<SearchResult> results = null;
try {
results = authContext.search(searchBase, searchFilter, searchCtls);
while (results.hasMore()) {
SearchResult searchResult = (SearchResult) results.next();
String cn = searchResult.getName();
Attributes attributes = searchResult.getAttributes();
Attribute attrib = attributes.get("uid");
if (attrib != null) {
String uid = (String) attrib.get();
uidCnDictionary.put(uid, cn);