Use this class to establish ldap session
Sample call
LdapSessionUtils.ldapSession().list("personLdap", "ou=Groups,dc=example,dc=edu", LdapSearchScope.SUBTREE_SCOPE, "(objectClass=groupOfNames)", GrouperUtil.toArray(GrouperUtil.toList("objectClass", "cn", "member", "businessCategory"), String.class), null);