public List<String> getAllLdapNames() throws NamingException {
    final List<String> result = new ArrayList<>();
    handle(new RecordProcessor() {
      @Override
      public boolean process(SearchResult record) throws NamingException {
        result.add(record.getNameInNamespace());
        return true;
      }
    });
    return result;
  }
Returns all entries from the search result.
@return a list of names in the namespace
@throws NamingException
service/src/java/org/apache/hive/service/auth/ldap/SearchResultHandler.java