ldapentry.xml 檔取代了 WebSphere Commerce 舊版中所用的 ldapmap.xml 檔。請記得將您先前使用的 ldapmap.xml 檔內容轉送到 ldapentry.xml 檔中。ldapentry.xml 檔提供最常使用欄位的預設映射。 預設綱目映射中的 LDAP 屬性是根據預設使用者物件類別 (person、organizationalPerson、inetOrgPerson 與 ePerson),以及預設組織實體物件類別 (organization 和 organizationalUnit)而來。 這些物件類別是定義給 WebSphere Commerce 所支援的所有 LDAP 伺服器。 如果要將預設綱目映射擴充到這些物件類別之外, 請確定要先在 LDAP 伺服器上執行綱目擴充項, 之後才能將新屬性的映射置於 ldapentry.xml 檔中。 建議您不要將下列屬性持續保存在 LDAP 中:WebSphere Commerce 中內部產生的鍵值、經常變更的資料(如 USERS 表格中的 Lastsession)。
有關 LDAP 屬性的資訊,請見下列網站:www.as400.ibm.com/ldap/schema。
<?xml version="1.0"?>
<!DOCTYPE ldapentry SYSTEM "ldapentry.dtd">
<ldapentry>
<entry entryName="User">
<ldapsetting>
<ldaprdn rdnName="uid" keyAttrName="logonId" keyObjName="UserRegistry"/>
<ldapocs objClass="top;person;organizationalPerson;inetOrgPerson"/>
<ldapbase defaultBase="o=Default Organization,o=Root Organization" searchBase="o=Root Organization"/>
</ldapsetting>
<ldapmap>
<map>
<objectAttribute attrName="logonPassword"/>
<ldapAttribute name="userPassword" operation="replace" flow="wcsToLdap"/>
</map>
<map>
<objectAttribute attrName="lastName"/>
<objectAttribute attrName="firstName"/>
<objectSeparator attrSeparator="/"/>
<ldapAttribute name="cn" operation="replace"
flow="wcsToLdap"/>
</map>
<map>
<objectAttribute attrName="lastName"/>
<ldapAttribute name="sn" operation= "replace" flow="bothDirections"/>
</map>
<map>
<objectAttribute attrName="firstName"/>
<ldapAttribute name="givenName" operation="replace" flow="bothDirections"/>
</map>
<map>
<objectAttribute attrName="phone1"/>
<ldapAttribute name="homePhone" operation="replace" flow="bothDirections"/>
</map>
<map>
<objectAttribute attrName="zipCode"/>
<ldapAttribute name="postalCode" operation="replace" flow="bothDirections"/>
</map>
<map>
<objectAttribute attrName="address1"/>
<objectAttribute attrName="address2"/>
<objectAttribute attrName="address3"/>
<objectSeparator attrSeparator="/"/>
<ldapAttribute name="postalAddress" operation="replace" flow="bothDirections"/>
</map>
</ldapmap>
</entry>
<entry entryName="Organization">
<ldapsetting>
<ldaprdn rdnName="o" keyAttrName="orgEntityName" keyObjName="Organization"/>
<ldapocs objClass="top;organization"/>
<ldapbase defaultBase="o=Root Organization" searchBase="o=Root Organization"/>
</ldapsetting>
<ldapmap>
<map>
<objectAttribute attrName="businessCategory"/>
<ldapAttribute name="businessCategory" operation="replace" flow="bothDirections"/>
</map>
<map>
<objectAttribute attrName="description"/>
<ldapAttribute name="description" operation="replace" flow="bothDirections"/>
</map>
<map>
<objectAttribute attrName="address1"/>
<objectAttribute attrName="address2"/>
<objectAttribute attrName="address3"/>
<objectSeparator attrSeparator="/"/>
<ldapAttribute name="postalAddress" operation="replace" flow="bothDirections"/>
</map>
<map>
<objectAttribute attrName="phone1"/>
<ldapAttribute name="telephoneNumber"
operation="replace" flow="bothDirections"/>
</map>
</ldapmap>
</entry>
<entry entryName="OrganizationalUnit">
<ldapsetting>
<ldaprdn rdnName="ou" keyAttrName="orgEntityName" keyObjName="Organization"/>
<ldapocs objClass="top;organizationalUnit"/>
<ldapbase defaultBase="o=Root Organization" searchBase="o=Root Organization"/>
</ldapsetting>
<ldapmap>
<map>
<objectAttribute attrName="businessCategory"/>
<ldapAttribute name="businessCategory" operation="replace" flow="bothDirections"/>
</map>
<map>
<objectAttribute attrName="description"/>
<ldapAttribute name="description" operation="replace" flow="bothDirections"/>
</map>
<map>
<objectAttribute attrName="address1"/>
<objectAttribute attrName="address2"/>
<objectAttribute attrName="address3"/>
<objectSeparator attrSeparator="/"/>
<ldapAttribute name="postalAddress" operation="replace" flow="bothDirections"/>
</map>
<map>
<objectAttribute attrName="phone1"/>
<ldapAttribute name="telephoneNumber" operation="replace" flow="bothDirections"/>
</map>
</ldapmap>
</entry>
</ldapentry>
ldapentry.xml 檔的格式如下:
![]() |