String[] searchAttributes = new String[] {searchAttribute};
List<?> result = null;
AndFilter filter = new AndFilter();
filter.and(
new EqualsFilter("objectclass", objectClass)).and(
new EqualsFilter(filterAttributeName, filterAttributeValue));
result = ldapTemplate.search((baseDN == null) ? "" : baseDN, filter.toString(),
SearchControls.SUBTREE_SCOPE, searchAttributes, mapper);
if (result != null && result.size() > 0) {
ldapAttributes = CastUtils.cast((List<?>)result);