private final List<User> getAttributes(String searchBase) throws NamingException
	{
		LOGGER.info(">> getAttributes()");

		NamingEnumeration<SearchResult> results = localInitialLdapContext.search(searchBase, searchFilter, searchctls);

		List<User> users = new ArrayList<User>();
		User user = null;

		while (results.hasMoreElements())
		{
			user = new User();
			SearchResult searchResult = results.next();
			Attributes attrs = searchResult.getAttributes();

			if (attrs != null && attrs.size() != 0)
			{
				Attribute attribute = null;

				String[] retrieveAttributes = parameters.getRetrieveAttributes();
				String[] attributesValues = new String[retrieveAttributes.length];
				for (int i = 0; i < retrieveAttributes.length; i++)
				{
					attribute = attrs.get(retrieveAttributes[i]);
					if (attribute != null && attribute.get() != null)
					{
						if (!isNullOrEmpty(attribute.get().toString()))
						{
							attributesValues[i] = attribute.get().toString();
						}
					}
				}
				user.setAttributeValues(attributesValues);
			}
			users.add(user);
		}
		
		LOGGER.info("<< getAttributes()");
		return users;
	}