public void setJndiTemplate(JndiTemplate jndiTemplate) {
        this.jndiTemplate = (jndiTemplate != null ? jndiTemplate : new JndiTemplate());
    }
Set the JNDI template to use for JNDI lookups.
<p>You can also specify JNDI environment settings via "jndiEnvironment".

@see #setJndiEnvironment
core/src/main/java/org/apache/shiro/jndi/JndiLocator.java