ldapentry.xml ファイルは、 旧バージョンの WebSphere Commerce で使用されていた ldapmap.xml ファイルに替わるものです。 以前使用していた ldapmap.xml ファイルの内容が、 ldapentry.xml ファイルに移行されていることを確認してください。 ldapentry.xml ファイルは、最も一般的に使用されるユーザー・フィールドのデフォルトのマッピングを提供しています。 デフォルトのスキーマ・マッピングの LDAP 属性はデフォルト・ユーザーのオブジェクト・クラス (person、 organizationalPerson、inetOrgPerson および ePerson) と、 デフォルトの組織エンティティー・オブジェクト・クラス (organization および organizationalUnit) を基にしています。 これらの objectclasses は WebSphere Commerce でサポートされるすべての LDAP サーバーに対して定義されます。 これらの objectclasses を超えてデフォルトのスキーマ・マッピングを拡張するには、 スキーマの拡張が最初に 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 ファイルの形式です:
![]() |