@SuppressWarnings("deprecation") private Hashtable<String, Object> setupAnonymousEnv() { if (pooled) { baseEnv.put(SUN_LDAP_POOLING_FLAG, "true"); LOG.debug("Using LDAP pooling."); } else { baseEnv.remove(SUN_LDAP_POOLING_FLAG); LOG.debug("Not using LDAP pooling"); } Hashtable<String, Object> env = new Hashtable<String, Object>(baseEnv); env.put(Context.INITIAL_CONTEXT_FACTORY, contextFactory.getName()); env.put(Context.PROVIDER_URL, assembleProviderUrlString(urls)); if (dirObjectFactory != null) { env.put(Context.OBJECT_FACTORIES, dirObjectFactory.getName()); } if (StringUtils.hasText(referral)) { env.put(Context.REFERRAL, referral); } if (!base.isEmpty()) { // Save the base path for use in the DefaultDirObjectFactory. env.put(DefaultDirObjectFactory.JNDI_ENV_BASE_PATH_KEY, base); } LOG.debug("Trying provider Urls: " + assembleProviderUrlString(urls)); return env; }
@SuppressWarnings("deprecation") private Hashtable<String, Object> setupAnonymousEnv() { if (pooled) { baseEnv.put(SUN_LDAP_POOLING_FLAG, "true"); LOG.debug("Using LDAP pooling."); } else { baseEnv.remove(SUN_LDAP_POOLING_FLAG); LOG.debug("Not using LDAP pooling"); } Hashtable<String, Object> env = new Hashtable<String, Object>(baseEnv); env.put(Context.INITIAL_CONTEXT_FACTORY, contextFactory.getName()); env.put(Context.PROVIDER_URL, assembleProviderUrlString(urls)); if (dirObjectFactory != null) { env.put(Context.OBJECT_FACTORIES, dirObjectFactory.getName()); } if (StringUtils.hasText(referral)) { env.put(Context.REFERRAL, referral); } if (!base.isEmpty()) { // Save the base path for use in the DefaultDirObjectFactory. env.put(DefaultDirObjectFactory.JNDI_ENV_BASE_PATH_KEY, base); } LOG.debug("Trying provider Urls: " + assembleProviderUrlString(urls)); return env; }
@SuppressWarnings("deprecation") private Hashtable<String, Object> setupAnonymousEnv() { if (pooled) { baseEnv.put(SUN_LDAP_POOLING_FLAG, "true"); LOG.debug("Using LDAP pooling."); } else { baseEnv.remove(SUN_LDAP_POOLING_FLAG); LOG.debug("Not using LDAP pooling"); } Hashtable<String, Object> env = new Hashtable<String, Object>(baseEnv); env.put(Context.INITIAL_CONTEXT_FACTORY, contextFactory.getName()); env.put(Context.PROVIDER_URL, assembleProviderUrlString(urls)); if (dirObjectFactory != null) { env.put(Context.OBJECT_FACTORIES, dirObjectFactory.getName()); } if (StringUtils.hasText(referral)) { env.put(Context.REFERRAL, referral); } if (!base.isEmpty()) { // Save the base path for use in the DefaultDirObjectFactory. env.put(DefaultDirObjectFactory.JNDI_ENV_BASE_PATH_KEY, base); } LOG.debug("Trying provider Urls: " + assembleProviderUrlString(urls)); return env; }
@SuppressWarnings("deprecation") private Hashtable<String, Object> setupAnonymousEnv() { if (pooled) { baseEnv.put(SUN_LDAP_POOLING_FLAG, "true"); LOG.debug("Using LDAP pooling."); } else { baseEnv.remove(SUN_LDAP_POOLING_FLAG); LOG.debug("Not using LDAP pooling"); } Hashtable<String, Object> env = new Hashtable<String, Object>(baseEnv); env.put(Context.INITIAL_CONTEXT_FACTORY, contextFactory.getName()); env.put(Context.PROVIDER_URL, assembleProviderUrlString(urls)); if (dirObjectFactory != null) { env.put(Context.OBJECT_FACTORIES, dirObjectFactory.getName()); } if (StringUtils.hasText(referral)) { env.put(Context.REFERRAL, referral); } if (!base.isEmpty()) { // Save the base path for use in the DefaultDirObjectFactory. env.put(DefaultDirObjectFactory.JNDI_ENV_BASE_PATH_KEY, base); } LOG.debug("Trying provider Urls: " + assembleProviderUrlString(urls)); return env; }