[z/OS]

removeMapPlatformSubject Script

如果您想要對「系統授權機能 (SAF)」使用分散式身分對映,請使用所提供的 removeMapPlatformSubject Jython Script ,以從安全配置中移除不必要的「Java™ 鑑別和授權服務 (JAAS)」登入模組 MapPlatformSubject。

removeMapPlatformSubject Script 會從下列登入項目中搜尋並移除 com.ibm.ws.security.common.auth.module.MapPlatformSubject JAAS 登入模組 :DEFAULT、WEB_INBOUND、RMI_INBOUND、SWAM_ZOSMAPING。 您可以針對廣域安全配置或特定安全網域執行此 Script。

語法

下列指令語法存在:
wsadmin.sh -conntype NONE -lang jython -f 
/path/to/script/removeMapPlatformSubject.py [options]

在沒有選項的情況下執行此 Script 會更新廣域安全配置。

參數

下列選項適用於 removeMapPlatformSubject Script:

-securityDomain <securityDomainName>
指定您只想要更新指定的安全網域。 如果未指定此選項,則會更新廣域安全配置。
-scripthelp
指定您要查看可用的語法和選項的說明。 -trace 選項也可用於除錯。 除錯輸出會傳送至 stdout 串流。
-trace
指定您要建立追蹤,您可以用來對這個函數的應用程式問題進行除錯。 追蹤輸出會傳送至 stdout 串流。

使用實務

下列範例示範正確的語法。

請利用這個範例來移除廣域安全配置中的登入模組:

wsadmin.sh -conntype NONE -lang jython -f 
/WebSphere/AppServer/bin/removeMapPlatformSubject.py 
使用此範例,從移除登入模組server2Domain安全網域:
wsadmin.sh -conntype NONE -lang jython -f 
/WebSphere/AppServer/bin/removeMapPlatformSubject.py 
-securityDomain server2Domain