(僅限間接繫結) 將外部 LDAP 使用者的密碼加密

Edge for Private Cloud 4.19.01 版

如果您使用間接繫結,則必須在 management-server.properties 中提供外部 LDAP 使用者名稱和密碼,Apigee 才能登入外部 LDAP 並執行間接憑證搜尋。

以下說明如何加密密碼:

  1. 執行下列 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"
  2. 在指令的輸出內容中,您會看到一個換行,後面接著一串看似隨機的字元。複製該字串。
  3. 編輯 /opt/apigee/customer/application/management-server.properties。
  4. 更新下列屬性,將 myAdPassword 替換為您在上述步驟 2 複製的字串。
    conf_security_externalized.authentication.indirect.bind.server.admin.password=myAdPassword
  5. 請務必將下列屬性設為 true:
    conf_security_externalized.authentication.indirect.bind.server.admin.password.encrypted=true
  6. 儲存檔案。
  7. 重新啟動管理伺服器:
    /opt/apigee/apigee-service/bin/apigee-service edge-management-server restart
  8. 確認伺服器正在運作:
    /opt/apigee/apigee-service/bin/apigee-all status

測試安裝

請參閱「啟用外部驗證」結尾的測試部分,並執行其中所述的相同測試。