mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

abobrov
02.22.2007 e9ed6e05d3fb6f9d197bd717ef65109c3af3e0a6
- [Issue 2406]  supportedControl in DSE does not display all the supported controls:
advertise Account Usable and GetEffectiveRights via supportedControl of RootDSE.
also fix criticality field recognition/process for GetEffectiveRights request control.
3 files modified
8 ■■■■■ changed files
opends/src/server/org/opends/server/authorization/dseecompat/AciHandler.java 2 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/DirectoryServer.java 1 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendSearchOperation.java 5 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/AciHandler.java
@@ -201,6 +201,7 @@
    aciListenerMgr = new AciListenerManager(aciList, configurationDN);
    processGlobalAcis(configuration);
    processConfigAcis();
    DirectoryServer.registerSupportedControl(OID_GET_EFFECTIVE_RIGHTS);
  }
@@ -212,6 +213,7 @@
  public void finalizeAccessControlHandler()
  {
    AciEffectiveRights.finalizeOnShutdown();
    DirectoryServer.deregisterSupportedControl(OID_GET_EFFECTIVE_RIGHTS);
  }
opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -2793,6 +2793,7 @@
    supportedControls.add(OID_PASSWORD_POLICY_CONTROL);
    supportedControls.add(OID_REAL_ATTRS_ONLY);
    supportedControls.add(OID_VIRTUAL_ATTRS_ONLY);
    supportedControls.add(OID_ACCOUNT_USABLE_CONTROL);
  }
opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendSearchOperation.java
@@ -649,6 +649,11 @@
        {
          setVirtualAttributesOnly(true);
        }
        else if (oid.equals(OID_GET_EFFECTIVE_RIGHTS) &&
          DirectoryServer.isSupportedControl(OID_GET_EFFECTIVE_RIGHTS))
        {
          // Do nothing here and let AciHandler deal with it.
        }
        // NYI -- Add support for additional controls.