22.5 Offerta del bilanciamento del carico LDAP e tolleranza agli errori

Se si dispone di più di un server LDAP per accedere all'origine utente (directory), è possibile configurare i server ZENworks perché ricevano informazioni su ognuno dei server LDAP. In questo modo vengono forniti sia il bilanciamento del carico sia la tolleranza agli errori.

Ad esempio, se si dispone di più di un server ZENworks, è possibile configurarli perché ognuno acceda all'origine utente tramite un server LDAP diverso. In questo modo il workload viene distribuito uniformemente sui server LDAP.

Allo stesso modo, per ogni server ZENworks, è possibile elencare più di un server LDAP attraverso il quale eseguire il collegamento all'origine utente. Nel caso in cui uno dei server LDAP non fosse disponibile, il server ZENworks utilizzerà un altro server LDAP.

Per definire server LDAP aggiuntivi per un server ZENworks:

  1. Copiare il file alt-servers.properties.sample in un nuovo file denominato alt-servers.properties. Il file si trova sul server ZENworks nella seguente directory:

    • per sistemi Windows: c:\program files\novell\zenworks\conf\datamodel\authsource

    • per sistemi Linux: /etc/opt/novell/zenworks/datamodel/authsource

  2. Modificare il file alt-servers.properties per includere il nome origine utente ed elencare i server LDAP che possono essere utilizzati per accedervi.

    Il file, mostrato sotto, contiene informazioni per la formattazione delle voci.

    # Sample alt-servers.properties file.
    #
    # The alt-servers.properties file allows you to configure how this server will connect to a particular user source.
    # When connecting to a LDAP user source, ZENworks will try to connect to the servers in the order listed in this file.
    # This allows for fail-over to other LDAP servers and for load distribution, if different ZENworks Primary Servers are
    # configured with the server addresses in a different order.
    #
    # * The [user-source-name] must exactly match how the user source name appears on the configuration page in ZCC.
    # * You must specify the LDAP port along with each server address.
    # * SSL is configured for the entire user source, not for each individual server. You must specify either the
    #   SSL port or the clear text port for all servers, depending on how the user source is configured in ZCC.
    # * If the server-list.properties file contains an entry for a user source, ZENworks will not try to connect to the
    #   server address configured in ZCC. It only tries the addresses listed in the properties file.
    # * If you create or modify the server-list.properties file, you will need to restart the Novell ZENworks Server and
    #   Novell ZENworks Loader services for it to take effect.
    # * Performance will be impacted if one or more of the servers at the top of the list are down, as ZENworks attempts to
    #   connect to the servers in order. This is particularly true of the CASA authentication token service, which is
    #   contacted when a user tries to log in to ZENworks on a workstation.
    #
    # Format:
    #
    # [user-source-name]=\
    #   [host1]:[port] \
    #   [host2]:[port] \
    #   [host3]:[port]
    #
    # Example:
    #
    MY_EDIR_TREE=\
      edir1.novell.com:636 \
      edir2.novell.com:636 \
      edir3.novell.com:636 \
      edir4.novell.com:636
    
  3. Riavviare il server ZENworks.

  4. Per ogni server ZENworks di cui si desidera definire server LDAP aggiuntivi, ripetere la procedura da Passaggio 1 a Passaggio 3.