docs: private InMemoryDirectoryServer createDirectoryServer() throws LDAPException
    {
      try
      {
        InMemoryDirectoryServerConfig cfg =
          new InMemoryDirectoryServerConfig(baseDN);
  
        InetAddress address = InetAddress.getLocalHost();
  
        host = address.getHostName();
  
        cfg.addAdditionalBindCredentials(additionalBindDN,
          additionalBindPassword);
        cfg.setListenerConfigs(new InMemoryListenerConfig("listener", address,
          port, ServerSocketFactory.getDefault(), SocketFactory.getDefault(),
          null));
  
        // disable schema check
        cfg.setSchema(null);
  
        return new InMemoryDirectoryServer(cfg);
      }
      catch (UnknownHostException ex)
      {
        throw new RuntimeException("could not read localhost address", ex);
      }
    }