class ExtSourceLdap extends ExtSource implements ExtSourceApi {

	@Override
	public List<Map<String, String>> getUsersSubjects() {
		// if usersQuery is null, there is no filter and method returns all users subjects
		String filter = getAttributes().get(UsersManager.USERS_QUERY);

		String base = getAttributes().get("base");
		if (base == null) {
			throw new InternalErrorException("base attributes is required");
		}

		return querySource(filter, base, 0);
	}

}