< prev index next >
test/jdk/com/sun/jndi/ldap/Base64Test.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 178,188 ****
/*
* Dumps the encoding of a JNDI Reference object during an attempt to store
* in an LDAP directory.
*/
private static void storeObjectInLDAP() {
! Hashtable env = new Hashtable();
env.put(Context.REFERRAL, "follow"); // omit an LDAP control
env.put("java.naming.ldap.version", "3"); // omit LDAP bind operation
env.put("com.sun.jndi.ldap.trace.ber", System.err); // dump protocol
try {
DirContext ctx = new InitialDirContext(env);
--- 178,188 ----
/*
* Dumps the encoding of a JNDI Reference object during an attempt to store
* in an LDAP directory.
*/
private static void storeObjectInLDAP() {
! Hashtable<Object, Object> env = new Hashtable<>();
env.put(Context.REFERRAL, "follow"); // omit an LDAP control
env.put("java.naming.ldap.version", "3"); // omit LDAP bind operation
env.put("com.sun.jndi.ldap.trace.ber", System.err); // dump protocol
try {
DirContext ctx = new InitialDirContext(env);
< prev index next >