Skip to content

Commit

Permalink
[#392] FIX RootDSE Entry allow user objectClass (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko authored Sep 17, 2024
1 parent 39e4e3e commit 2956242
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*
* Copyright 2006-2010 Sun Microsystems, Inc.
* Portions Copyright 2011-2016 ForgeRock AS.
* Portions Copyright 2024 3A Systems, LLC.
*/
package org.opends.server.backends;

Expand Down Expand Up @@ -187,10 +188,10 @@ public void openBackend() throws ConfigException, InitializationException
BuildVersion.binaryVersion().toString()));

// Construct the set of objectclasses to include in the root DSE entry.
dseObjectClasses = new HashMap<>(2);
dseObjectClasses = new HashMap<>(configEntry.getObjectClasses().size());
dseObjectClasses.put(getTopObjectClass(), OC_TOP);
dseObjectClasses.put(serverContext.getSchema().getObjectClass(OC_ROOT_DSE), OC_ROOT_DSE);

dseObjectClasses.putAll(configEntry.getObjectClasses());
// Set the backend ID for this backend. The identifier needs to be
// specific enough to avoid conflict with user backend identifiers.
setBackendID("__root.dse__");
Expand Down

0 comments on commit 2956242

Please sign in to comment.