return getInternalId(entity.getId(), required);
}
public String getInternalId(String entityId, boolean required) throws SecurityException
{
String sf = createSearchFilter(new EqualsFilter(configuration.getLdapIdAttribute(), entityId));
SearchControls sc = getSearchControls(SearchControls.SUBTREE_SCOPE, false, new String[0]);
CollectingSearchResultHandler<String,SearchResult> cbh =
new CollectingSearchResultHandler<String,SearchResult>(1)
{
protected String mapResult(SearchResult result, int pageSize, int pageIndex, int index)