LDAPv2TestCase.java revision ea1068c292e9b341af6d6b563cd8988a96be20a9
5046N/A * The contents of this file are subject to the terms of the 5046N/A * Common Development and Distribution License, Version 1.0 only 5046N/A * (the "License"). You may not use this file except in compliance 5046N/A * See the License for the specific language governing permissions 5046N/A * and limitations under the License. 5046N/A * When distributing Covered Code, include this CDDL HEADER in each 5046N/A * If applicable, add the following below this CDDL HEADER, with the 5046N/A * fields enclosed by brackets "[]" replaced with your own identifying 5046N/A * Portions Copyright [yyyy] [name of copyright owner] 5046N/A * Copyright 2006-2008 Sun Microsystems, Inc. 5046N/A * Portions Copyright 2010-2015 ForgeRock AS. 5046N/A * This class provides a number of tests to ensure that the server interacts 5046N/A * with LDAPv2 clients as expected. 5046N/A * Ensure that the Directory Server is running. 5046N/A * @throws Exception If an unexpected problem occurs. 5046N/A * Tests to ensure that the server will reject an LDAPv2 bind request if 5046N/A * @throws Exception If an unexpected problem occurs. 5046N/A "dn: cn=LDAP Connection Handler,cn=Connection Handlers,cn=config",
5046N/A "replace: ds-cfg-allow-ldap-v2",
5046N/A "ds-cfg-allow-ldap-v2: false");
5046N/A "dn: cn=LDAP Connection Handler,cn=Connection Handlers,cn=config",
5046N/A "replace: ds-cfg-allow-ldap-v2",
5046N/A "ds-cfg-allow-ldap-v2: true");
5046N/A * Tests to ensure that the server will reject an extended request from an 5046N/A * @throws Exception If an unexpected problem occurs. 5046N/A * Tests to ensure that the server will reject an LDAPv2 add request if it 5046N/A * @throws Exception If an unexpected problem occurs. 5046N/A * Tests to ensure that the server will reject an LDAPv2 bind request if it 5046N/A * contains any controls and LDAPv2 binds are allowed. 5046N/A * @throws Exception If an unexpected problem occurs. 5046N/A * Tests to ensure that the server will reject an LDAPv2 compare request if it 5046N/A * @throws Exception If an unexpected problem occurs. * Tests to ensure that the server will reject an LDAPv2 delete request if it * @throws Exception If an unexpected problem occurs. * Tests to ensure that the server will reject an LDAPv2 modify request if it * @throws Exception If an unexpected problem occurs. * Tests to ensure that the server will reject an LDAPv2 modify DN request if * it contains any controls. * @throws Exception If an unexpected problem occurs. * Tests to ensure that the server will reject an LDAPv2 search request if it * @throws Exception If an unexpected problem occurs.