完成 Application Server 升級之後,使用 asadmin 工具執行以下指令以設定 domain.xml 中的 <auth-realm>︰
轉至 as-install/bin 並執行下列指令:
./asadmin delete-auth-realm --host localhost --port 6489 certificate |
將移除舊的 auth-realm 憑證 (如果存在)。
執行以下指令︰
./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>。
停止並重新啟動 Application Server registry 網域。