Go to main content
Oracle® Solaris 11.3 での Kerberos およびその他の認証サービスの管理

印刷ビューの終了

更新: 2017 年 3 月
 
 

NIS ホストに Diffie-Hellman 鍵を設定する方法

この手順は、NIS ドメイン内のすべてのホスト上で実行します。

始める前に

root 役割になる必要があります。詳細は、Oracle Solaris 11.3 でのユーザーとプロセスのセキュリティー保護 の 割り当てられている管理権利の使用を参照してください。

  1. デフォルトのネームサービスが NIS でない場合は、publickey マップをネームサービスに追加します。
    1. ネームサービスの config/default の値が nis でないことを確認します。
      # svccfg -s name-service/switch listprop config
      config                       application
      config/value_authorization   astring       solaris.smf.value.name-service.switch
      config/default               astring       files
      config/host                  astring       "files nis dns"
      config/printer               astring       "user files nis"

      config/default の値が nis である場合は、ここで停止できます。

    2. publickey のネームサービスを nis に設定します。
      # svccfg -s name-service/switch setprop config/publickey = astring: "nis"
      # svccfg -s name-service/switch:default refresh
    3. publickey 値を確認します。
      # svccfg -s name-service/switch listprop
      config                       application
      config/value_authorization   astring       solaris.smf.value.name-service.switch
      config/default               astring       files
      config/host                  astring       "files nis dns"
      config/printer               astring       "user files nis"
      config/publickey             astring       nis

      このシステムでは、publickey がデフォルトの files とは異なるため、その値が表示されます。

  2. newkey コマンドを使用して、新しい鍵のペアを作成します。
    # newkey -h hostname

    hostname は、クライアント名です。

使用例 50  NIS クライアント上で root の新しい鍵を設定する

次の例では、Name Service Security 権利プロファイルを持つ管理者が、セキュアな NIS クライアントとして earth を設定します。

# newkey -h earth
Adding new key for unix.earth@example.com
New Password: xxxxxxxx
Retype password: xxxxxxxx
Please wait for the database to get updated...
Your new key has been successfully stored away.
#