Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try missing schema fix #441

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions opendj-server-legacy/resource/schema/00-x501.ldif
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# The contents of this file are subject to the terms of the Common Development and
# Distribution License (the License). You may not use this file except in compliance with the
# License.
#
# You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
# specific language governing permission and limitations under the License.
#
# When distributing Covered Software, include this CDDL Header Notice in each file and include
# the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
# Header, with the fields enclosed by brackets [] replaced by your own identifying
# information: "Portions Copyright [year] [name of copyright owner]".
#
# Copyright 2006-2010 Sun Microsystems, Inc.
# Portions Copyright 2024 3A Systems, LLC
#
# This file contains schema definitions derived from ITU-T Rec. X.501.
#
dn: cn=schema
objectClass: top
objectClass: ldapSubentry
objectClass: subschema
nameForms: ( 2.5.15.16
NAME 'subentryNameForm'
DESC 'X.501, cl. 14.2.2: the Subentry name form'
OC subentry
MUST cn )
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,16 @@ public void test()
);

//add OC subentry with DSR violation: RDN OC subentry MUST cn
assertThrows(new ThrowingRunnable() {
@Override
public void run() throws Throwable {
TestCaseUtils.addEntry(
"dn: o=test-subentry-error,ou=Accounts,dc=example,dc=com",
"objectClass: top",
"objectClass: extensibleObject",
"objectClass: subentry",
"objectClass: collectiveAttributeSubentry",
"subtreeSpecification: {}",
"cn: test-subentry-error"
);
}
}
resultCode = TestCaseUtils.applyModifications(true,
"dn: cn=test-subentry-ok,ou=Accounts,dc=example,dc=com",
"changetype: add",
"objectClass: top",
"objectClass: extensibleObject",
"objectClass: subentry",
"objectClass: collectiveAttributeSubentry",
"subtreeSpecification: {}",
"cn: test-subentry-ok"
);
assertEquals(resultCode, 64);
}
}
Loading