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

neil_a_wilson
02.04.2007 11c5b708d2668174a94512c0936dbcbc3cfeeca8
opends/src/server/org/opends/server/protocols/ldap/LDAPConnectionHandler.java
@@ -289,6 +289,15 @@
      enabledSSLProtocols = protocols.toArray(new String[0]);
    }
    if (config.isAllowLDAPV2())
    {
      DirectoryServer.registerSupportedLDAPVersion(2, this);
    }
    else
    {
      DirectoryServer.deregisterSupportedLDAPVersion(2, this);
    }
    return new ConfigChangeResult(resultCode, adminActionRequired,
        messages);
  }
@@ -317,6 +326,9 @@
    shutdownRequested = true;
    currentConfig.removeLDAPChangeListener(this);
    DirectoryServer.deregisterSupportedLDAPVersion(2, this);
    DirectoryServer.deregisterSupportedLDAPVersion(3, this);
    try {
      selector.wakeup();
    } catch (Exception e) {
@@ -744,6 +756,14 @@
    }
    // Register the set of supported LDAP versions.
    DirectoryServer.registerSupportedLDAPVersion(3, this);
    if (config.isAllowLDAPV2())
    {
      DirectoryServer.registerSupportedLDAPVersion(2, this);
    }
    // Register this as a change listener.
    config.addLDAPChangeListener(this);
  }