Sun Java System Application Server 9.1 版本說明

解決方案

完成 Application Server 升級之後,使用 asadmin 工具執行以下指令以設定 domain.xml 中的 <auth-realm>

  1. 移至 <appserver9.1-install-dir>/bin 並執行以下指令:


    ./asadmin delete-auth-realm --host localhost --port 6489 certificate

    將移除舊的 auth-realm 憑證 (如果存在)。

  2. 執行以下指令︰


    ./asadmin create-auth-realm --terse=false --echo=true --interactive=true \
    --user admin --host localhost --port 6489 --classname \
    com.sun.enterprise.security.auth.realm.certificate.CertificateRealm \
    --property assign-groups=have.client.cert  certificate

    將建立具有 assign-groups 特性的新 <auth-realm>

  3. 停止並重新啟動 Application Server registry 網域。