vCenter Server で dcli コマンドが " Unable to authenticate user. " というエラーで失敗し、認証情報の再入力ができない
search cancel

vCenter Server で dcli コマンドが " Unable to authenticate user. " というエラーで失敗し、認証情報の再入力ができない

book

Article ID: 421574

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

免責事項:これは英文の記事「dcli command fails with "Unable to authenticate user." and does not prompt to re-enter credentials in vCenter Server」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

 

  • 権限が不十分なユーザーとして dcli コマンドを実行し、その認証情報を保存すると、それ以降認証情報を再入力することができなくなります。

    e.g.)
    root@vc [ ~ ]# dcli com vmware vcenter host list
    Username: [email protected]
    Password: **********
    Do you want to save credentials in the credstore? (y or n) [y]:y
    Error: Unable to authenticate user.
    Server error: com.vmware.vapi.std.errors.Unauthenticated
    Error message:
        Authentication required.

    root@vc [ ~ ]# dcli com vmware vcenter host list
    Error: Unable to authenticate user.
    Server error: com.vmware.vapi.std.errors.Unauthenticated
    Error message:
        Authentication required.



  • この記事では、保存された認証情報を削除する方法について説明します。

Resolution

保存された認証情報を削除する手順:

  1. 次のコマンドを実行して、保存されている認証情報を一覧表示します。

    dcli +credstore-list

    example output:
    - type: vapi
      server: http://localhost/api
      session_manager: com.vmware.cis.session
      user: [email protected]

     

  2. 次のコマンドを実行して、保存された認証情報を削除します。

    dcli +credstore-remove +server <server url> +username <user>

    example:
    dcli +credstore-remove +server http://localhost/api +username [email protected]