| | |
| | | import javax.net.ssl.SSLHandshakeException; |
| | | import javax.net.ssl.TrustManager; |
| | | |
| | | import org.opends.server.replication.plugin.EntryHistorical; |
| | | import org.opends.server.schema.SchemaConstants; |
| | | |
| | | /** |
| | |
| | | } |
| | | env.put(Context.INITIAL_CONTEXT_FACTORY, |
| | | "com.sun.jndi.ldap.LdapCtxFactory"); |
| | | env.put("java.naming.ldap.attributes.binary", |
| | | EntryHistorical.HISTORICAL_ATTRIBUTE_NAME); |
| | | env.put(Context.PROVIDER_URL, ldapURL); |
| | | if (timeout >= 1) |
| | | { |
| | |
| | | } |
| | | env.put(Context.INITIAL_CONTEXT_FACTORY, |
| | | "com.sun.jndi.ldap.LdapCtxFactory"); |
| | | env.put("java.naming.ldap.attributes.binary", |
| | | EntryHistorical.HISTORICAL_ATTRIBUTE_NAME); |
| | | env.put(Context.PROVIDER_URL, ldapsURL); |
| | | env.put("java.naming.ldap.factory.socket", |
| | | org.opends.admin.ads.util.TrustedSocketFactory.class.getName()); |
| | |
| | | } |
| | | env.put(Context.INITIAL_CONTEXT_FACTORY, |
| | | "com.sun.jndi.ldap.LdapCtxFactory"); |
| | | env.put("java.naming.ldap.attributes.binary", |
| | | EntryHistorical.HISTORICAL_ATTRIBUTE_NAME); |
| | | env.put(Context.PROVIDER_URL, ldapURL); |
| | | env.put(Context.SECURITY_AUTHENTICATION , "none"); |
| | | |