9.2 以非 Root 使用者身分安裝 Identity Vault

本節介紹如何使用 Tar 聚合檔而不是 nds-install 公用程式來安裝 Identity Vault。當您將 Tar 檔案解包時,系統將會建立 etc、opt 和 var 目錄。

如需以非 root 身分進行安裝所需符合之先決條件的詳細資訊,請參閱節 7.2.2, 以非 root 使用者身分安裝 Identity Vault 的先決條件。

附註:在以 root 使用者身分安裝期間,如果想指定自訂路徑,也可以使用此程序。

若要以非 root 使用者身分安裝 Identity Vault:

  1. 以對要安裝 Identity Vault 的電腦擁有相應權限的 sudo 使用者身分登入。

    附註:若要指定自訂安裝路徑,也可以使用 root 使用者身分登入。

  2. 在您要安裝 Identity Vault 的目錄中,使用以下指令將 Tar 檔案解包:

    tar -xvf /tar_file_name
  3. (視情況而定) 若要手動輸出環境變數的路徑,請輸入以下指令:

    export LD_LIBRARY_PATH=custom_location/eDirectory/opt/novell/eDirectory/
    lib64:custom_location/eDirectory/opt/novell/eDirectory/lib64/ndsmodules:
    custom_location/eDirectory/opt/novell/lib64:$LD_LIBRARY_PATH
    
    export PATH=custom_location/eDirectory/opt/novell/eDirectory/
    bin:custom_location/eDirectory/opt/novell/eDirectory/sbin:/opt/novell/
    eDirectory/bin:$PATH
    
    export MANPATH=custom_location/eDirectory/opt/novell/man:custom_location/
    eDirectory/opt/novell/eDirectory/man:$MANPATH
    
    export TEXTDOMAINDIR=custom_location/eDirectory/opt/novell/eDirectory/
    share/locale:$TEXTDOMAINDIR
  4. (視情況而定) 若要使用 ndspath 程序檔輸出環境變數的路徑,必須將 ndspath 程序檔放在公用程式的前面。完成以下步驟:

    1. 從 custom_location/eDirectory/opt 目錄中,使用以下指令執行該公用程式:

      custom_location/eDirectory/opt/novell/eDirectory/bin/ndspath
      utility_name_with_parameters
    2. 使用以下指令輸出目前外圍程序中的路徑:

      . custom_location/eDirectory/opt/novell/eDirectory/bin/ndspath
    3. 照常執行公用程式。

    4. 在 /etc/profile、~/bashrc 或類似程序檔的末尾新增用於輸出路徑的指示。

      執行此步驟後,每當您登入或者開啟新外圍程序時,都可以直接啟動公用程式。

  5. 為了支援透過 VLV (Virtual List View) 和 SSS (Server Side Sort) 控制項進行 LDAP 搜尋的功能,請對 Identity Vault 套用 Hotfix 2。如需詳細資訊,請參閱節 11.0, 將 Hotfix 2 套用於 Identity Vault。

  6. 若要設定 Identity Vault,請完成下列其中一個步驟:

    1. 若要執行 ndsconfig 公用程式,請在指令行中輸入以下文字:

      ndsconfig new [-t treename] [-n server_context] [-a admin_FDN] [-w
      admin password] [-i] [-S server_name] [-d path_for_dib] [-m module] [e] [-L ldap_port] [-l SSL_port] [-o http_port] -O https_port] [-p IP address:[port]] [-c] [-b port_to_bind] [-B interface1@port1, interface2@port2,..] [-D custom_location] [--config-file configuration_file]

      例如:

      ndsconfig new -t mary-tree -n novell -a admin.novell -S linux1 -d /home/
      mary/inst1/data -b 1025 -L 1026 -l 1027 -o 1028 -O 1029 -D /home/mary/
      inst1/var --config-file /home/mary/inst1/nds.conf

      附註:

      • 如需您在使用 ndsconfig 公用程式時可指定之參數的詳細資訊,請參閱節 12.1.1, 瞭解 ndsconfig 公用程式參數。

      • 必須指定介於 1024 和 65535 之間的連接埠號。您不能假定預設連接埠 524 適用於任何 eDirectory 應用程式。

        這項連接埠規格限制可能會對以下類型的應用程式造成負面影響:

        • 未提供指定目標伺服器連接埠的選項的應用程式。

        • 使用 NCP 並以 root 身分在連接埠 524 上執行的舊版應用程式。

      • 您可以在 -B 和 -P 選項中指定 IPv6 位址。若要指定 IPv6 位址,必須將地址包含在方括號 [ ] 中。例如 -B [2015::4]@636。

      • 您必須安裝並設定 NetIQ SecreStore (ss)。如需詳細資訊,請參閱節 12.1.2, 將 SecretStore 新增至 Identity Vault 綱要。

    2. 使用 ndsmanage 公用程式設定一個新例項。如需詳細資訊,請參閱節 12.2.2, 在 Identity Vault 中建立新例項。