class LDAPUserInfoImpl extends AbstractLDAPUserGroupInfo implements UserInfo {

    @Override
    public String getEntityForEmail(String email) {        
        String context = getConfigProperty(USER_CTX);
        String filter = getConfigProperty(EMAIL_FILTER);
        String attributeId = getConfigProperty(USER_ATTR_ID, DEFAULT_USER_ATTR_ID);
        LdapSearcher searcher = ldapSearcher.search(context, filter, email);

        if (searcher.getSearchResults().isEmpty()) {
            return null;
        }
        
        if (isEntityIdDn()) {
            return searcher.getSingleSearchResult().getNameInNamespace();
        }
        
        return searcher.getSingleAttributeResult(attributeId);
    }

    public  LDAPUserInfoImpl(boolean activate);
    public  LDAPUserInfoImpl(Properties config);

}