管理ガイド> NTLM認証の構成> UNIX用のNTLM認証の実装> ODataデータサービス用のNTLMの検証
 
ODataデータサービス用のNTLMの確認検証
ODataデータサービスのNTLMを確認するには
1. UNIX用のNTLM認証の実装の説明に従ってNTLMを構成します。
2. 主キーを含むテーブルをDataServices/DatabasesのTDVデータベースに公開します。
たとえば、/shared/examples/ds_inventory/productsテーブルをDataServices/Databases/examplesなどのTDVデータベースに公開します。
3. 公開したリソースを含むTDVデータベースを開きます。
4. [OData]タブで、次に示すように[NTLM]チェックボックスをオンにします。
5. curlコマンドラインツールを使用して、次の例に示すようにユーザー/パスワードを確認します。
curl --ntlm --user ntlmuser1:password http://DBntlm.comp.com:9410/odata/examples/products (TDV on local linux)
curl --ntlm --user qa:password http://mega-lt.comp.com:9400/odata/examples/products  (TDV on remote win 7)
 
注: NTLM認証に合格すると、結果が返されます。
否定的な場合:(間違ったパスワード)
curl --ntlm --user ntlmuser1:password1 http://DBntlm.comp.com:9410/odata/examples/products
 
結果:
<?xml version="1.0" encoding="utf-8"?>
  <html>
  <head/>
  <body>
    <div style="font-family: sans-serif; color: #990000; margin-top: 5px; margin-bottom: 5px; text-align: center">TDVCO INFORMATION SERVER
      <hr style="border-style: groove;"/>
    </div>
    <div style="font-family: sans-serif;">
      <b>Error: </b>401 Unauthorized
    </div>
    <div style="font-family: sans-serif;">
      <b>Description: </b>Authentication failed.
    </div>
  </body>