protected AuthorizationInfo queryForAuthorizationInfo(PrincipalCollection principals,
                                                          LdapContextFactory ldapContextFactory) throws NamingException {
        return null;
    }
Method that should be implemented by subclasses to build an
{@link AuthorizationInfo} object by querying the LDAP context for the
specified principal.</p>

@param principals         the principals of the Subject whose AuthenticationInfo should be queried from the LDAP server.
@param ldapContextFactory factory used to retrieve LDAP connections.
@return an {@link AuthorizationInfo} instance containing information retrieved from the LDAP server.
@throws NamingException if any LDAP errors occur during the search.
core/src/main/java/org/apache/shiro/realm/ldap/DefaultLdapRealm.java