String baseDN) throws OpenDsException
{
ManagementContext mCtx = LDAPManagementContext.createFromContext(
JNDIDirContextAdaptor.adapt(ctx));
RootCfgClient root = mCtx.getRootConfiguration();
LocalDBBackendCfgDefn provider = LocalDBBackendCfgDefn.getInstance();
LocalDBBackendCfgClient backend = root.createBackend(provider,
backendName, null);
backend.setEnabled(true);
Set<DN> baseDNs = new HashSet<DN>();
baseDNs.add(DN.decode(baseDN));