間接バインディングを使用する場合は、外部 LDAP のユーザー名とパスワードを management-server.properties
で指定する必要があります。Apigee はこれを使用して外部 LDAP にログインし、間接的な認証情報の検索を行います。
次の手順で、パスワードを暗号化する方法について説明します。
- 次の Java ユーティリティを実行します。YOUR_EXTERNAL_LDAP_PASSWORD は、実際の外部 LDAP パスワードに置き換えてください。
java -cp /opt/apigee/edge-gateway/lib/thirdparty/*:/opt/apigee/edge-gateway/lib/kernel/*:/opt/apigee/edge-gateway/lib/infra/libraries/* com.apigee.util.CredentialUtil --password="YOUR_EXTERNAL_LDAP_PASSWORD"
- コマンドの出力で、改行の後にランダムな文字列のようなものが表示されます。その文字列をコピーします。
/opt/apigee/customer/application/management-server.properties
を編集します。- 次のプロパティを更新します。myAdPassword は、上記のステップ 2 でコピーした文字列に置き換えてください。
conf_security_externalized.authentication.indirect.bind.server.admin.password=myAdPassword
- 次のプロパティが true に設定されていることを確認します。
conf_security_externalized.authentication.indirect.bind.server.admin.password.encrypted=true
- ファイルを保存します。
- Management Server を再起動します。
/opt/apigee/apigee-service/bin/apigee-service edge-management-server restart
- サーバーが稼働していることを確認します。
/opt/apigee/apigee-service/bin/apigee-all status
インストールのテスト
外部認証を有効にするの最後にあるテスト セクションを参照して、それと同じテストを行います。