4.3 ユーザー定義パスワード記憶スキームの構成および管理
カスタム・コードをOracle Unified Directory (OUD)にデプロイした後、次の例に示すように、dsconfigコマンドを使用してカスタム記憶スキームを構成できます:
- 実装クラス名がexample.oud.customscheme.CustomUserPasswordHash、オプションの構成プロパティroundsおよびsaltlengthを持つ、
custom1
という名前のユーザー定義パスワード記憶域を作成します。- カスタム構成パラメータを使用する場合:
dsconfig create-password-storage-scheme --set enabled:true --set password-storage-scheme-class:example.oud.customscheme.CustomUserPasswordHash --type user-defined --scheme-name custom1 --set configuration-properties:rounds=10 --set configuration-properties:saltlength=16
- カスタム構成パラメータを使用しない場合:
dsconfig create-password-storage-scheme --set enabled:true --set password-storage-scheme-class:example.oud.customscheme.CustomUserPasswordHash --type user-defined --scheme-name custom1
- カスタム構成パラメータを使用する場合:
- 適用可能なパスワード・ポリシー(「デフォルト・パスワード・ポリシー」など)を変更して、この新しいカスタム・スキームを使用します
dsconfig --port 4444 -D "cn=Directory Manager" -j /scratch/htanaya/oud/pwd.txt set-password-policy-prop --policy-name "Default Password Policy" --set default-password-storage-scheme:bcrypt
- 構成後、次のコマンドを使用して設定を更新できます:
dsconfig set-password-storage-scheme-prop