配置 Workplace XT 的「輕量型目錄存取通訊協定 (LDAP)」設定之後,您還必須針對使用 Tivoli® Directory Server 的一些配置,進行其他的設定。如果 LDAP 伺服器中的 PersonAccount 物件類別不是設為 inetOrgPerson,必須建立 TCL Script,以便將 LDAP 伺服器的登入內容對映至 WebSphere® Application Server PersonAccount 物件類別的登入屬性。
只有在您的聯合 LDAP 伺服器中的
PersonAccount 物件類別不是設為
inetOrgPerson 時,才能執行這項作業。
如果要將 WebSphere Application Server 配置成使用 Tivoli Directory Server 聯合儲存庫,請執行下列動作:
- 使用具備管理專用權的帳戶來登入主機。
- 建立含有下列項目的 TCL Script:
提示: 在建立 Script 時,請確定您已解除註解變數宣告(移除 # 符號)。
##########################################
## Licensed Materials - Property of IBM
## © Copyright IBM Corp. 2011
## All Rights Reserved
##########################################
# Various variable assignments, with appropriate values, must be present
# in order for the rest of the script to run. The following variable
# assignments, with some example values, are applicable.
#
#repository identifier
#set _repoId ""
#PersonAccount Object Class
#set _personAccountObjectClass "inetOrgPerson"
#Login properties
#set _loginProperties "cn"
#Login attributes
#set _loginAttribute "uid"
global AdminTask
global AdminConfig
# Check to see if the PersonAccount will be changed
if {[lsearch $objClassList $_personAccountObjectClass] == -1} {
puts "Setting PersonAccount Object Class to
$_personAccountObjectClass and
mapping Login Property $_loginProperties to
Login Attribute $_loginAttribute."
# Clear the old PersonAccount Object Class
$AdminTask updateIdMgrLDAPEntityType [subst {-id $_repoId
-name PersonAccount -objectClasses -searchBases -searchFilter }]
$AdminConfig save
# Set the new PersonAccount Object Class
$AdminTask updateIdMgrLDAPEntityType [subst {-id $_repoId
-name PersonAccount -objectClasses
$_personAccountObjectClass -searchBases -searchFilter }]
$AdminConfig save
# Map the Login Property to the Login Attribute
$AdminTask addIdMgrLDAPAttr [subst {-id $_repoId -name $_loginProperties
-propertyName
$_loginAttribute -entityTypes "PersonAccount" }]
$AdminConfig save
}
puts "Done configuring Authenticator"
- 修改 Script 中的變數,使其適合您的配置:
選項 |
敘述 |
儲存庫 ID (_repoId) |
輸入儲存庫的唯一 ID。這個 ID 用來唯一識別 Cell 內的儲存庫。 |
PersonAccount 物件類別 (_personAccountObjectClass) |
輸入對映至 Tivoli Directory Server 中實體類型 PersonAccount 的物件類別名稱。預設名稱是
inetOrgPerson。 |
登入內容 (_loginProperties) |
輸入屬性,以決定使用者在登入 Tivoli Directory Server 時所要輸入的資訊類型。屬性可以是 LDAP 使用者帳戶中的任何內容,例如:序列 ID、電子郵件位址或使用者名稱。預設屬性是 cn。 |
登入屬性 (_loginAttribute) |
輸入對應至聯合儲存庫登入內容的登入屬性名稱。預設屬性是 uid。 |
- 從 WAS_profile_Home/profile/bin 目錄,使用 wsadmin 來執行 Script。例如:
/IBM/WebSphere/AppServer/profiles/profile/bin/wsadmin.sh -user WAS_admin
-password password -conntype SOAP -port SOAP_port -lang jacl
-f /opt/custom_script.tcl