Solaris Trusted Extensions インストールと構成 (Solaris 10 11/06 および Solaris 10 8/07 リリース版)

ProcedureTrusted Extensions で大域ゾーンを LDAP クライアントにする

LDAP では、この手順で大域ゾーンにネームサービス設定を構築します。LDAP を使用していない場合、この手順は省略できます。

始める前に

Sun JavaTM System Directory Server、つまり LDAP サーバーが存在しなければなりません。Trusted Extensions データベースのデータがサーバーに入力されていて、システムがサーバーと通信できなければなりません。そのため、構成しているシステムで、LDAP サーバー上の tnrhdb データベースへのエントリが必要です。あるいは、この手順を実行する前に、このシステムがワイルドカードエントリに含まれていなければなりません。

Trusted Extensions が設定された LDAP サーバーが存在しない場合、次に示す手順を実行する前に、第 5 章Trusted Extensions のための LDAP の構成 (手順)の手順を完了します。

  1. 元の nsswitch.ldap ファイルのコピーを保存します。

    LDAP 用の標準的なネームサービスのスイッチファイルは限定的であるため、Trusted Extensions には使用できません。


    # cd /etc
    # cp nsswitch.ldap nsswitch.ldap.orig
    
  2. DNS を使用している場合は、次のサービスの nsswitch.ldap ファイルのエントリを変更します。

    正しいエントリは次のとおりです。


    hosts:    files dns ldap
    
    ipnodes:    files dns ldap
    
    networks:   ldap files
    protocols:  ldap files
    rpc:        ldap files
    ethers:     ldap files
    netmasks:   ldap files
    bootparams: ldap files
    publickey:  ldap files
    
    services:   files

    Trusted Extensions によって、次の 2 つのエントリが追加されます。


    tnrhtp:    files ldap
    tnrhdb:    files ldap
  3. 変更した nsswitch.ldap ファイルを nsswitch.conf にコピーします。


    # cp nsswitch.ldap nsswitch.conf
    
  4. Trusted CDE ワークスペースで、Trusted_Extensions フォルダに移動します。

    1. 背景をマウスボタン 3 でクリックします。

    2. ワークスペースメニューで、「アプリケーション」->「アプリケーション・マネージャ」を選択します。

    3. Trusted_Extensions フォルダのアイコンをダブルクリックします。

      このフォルダには、インタフェース、LDAP クライアント、およびラベル付きゾーンを設定するためのアクションが含まれています。

  5. 「LDAP クライアントを作成」アクションをダブルクリックします。

    次のプロンプトに答えます。


    Domain Name:               Type the domain name
    Hostname of LDAP Server:   Type the name of the server
    IP Address of LDAP Server: Type the IP address
    LDAP Proxy Password:       Type the password to the server
    Profile Name:              Type the profile name
    
  6. 「了解 (OK)」をクリックします。

    次の完了メッセージが表示されます。


    global zone will be LDAP client of LDAP-server
    System successfully configured.
    
    *** Select Close or Exit from the window menu to close this window ***
  7. アクションウィンドウを閉じます。

  8. サーバーに関する情報が正しいことを確認します。

    1. 端末ウィンドウを開き、LDAP サーバーを照会します。


      # ldapclient list
      

      出力表示は次のようになります。


      NS_LDAP_FILE_VERSION= 2.0
      NS_LDAP_BINDDN= cn=proxyagent,ou=profile,dc=domain-name
      ...
      NS_LDAP_BIND_TIME= number
      
    2. エラーを修正します。

      エラーが表示される場合、正しい値で「LDAP クライアントを作成」アクションを実行します。たとえば、次のエラーが表示される場合、LDAP サーバーにシステムのエントリがない可能性があります。


      LDAP ERROR (91): Can't connect to the LDAP server.
      Failed to find defaultSearchBase for domain domain-name
      

      このエラーを修正するには、LDAP サーバーを確認する必要があります。