Le fichier ldapentry.xml remplace le fichier ldapmap.xml utilisé dans la version précédente de WebSphere Commerce. Vérifiez que les informations du fichier ldapmap.xml de la version précédente ont bien été transférées dans le fichier ldapentry.xml. Le fichier ldapentry.xml fournit un mappage par défaut des zones les plus souvent utilisées. Les attributs LDAP du mappage de schéma par défaut reposent sur des classes d'objets utilisateur (person, organizationalPerson, inetOrgPerson et ePerson) et sur des classes d'objets entité d'organisation par défaut (organization et organizationalUnit). Ces classes d'objet sont définies pour tous les serveurs LDAP pris en charge par WebSphere Commerce. Pour étendre le mappage par défaut au-delà de ces classes d'objet, assurez-vous que les extensions de schéma sont d'abord effectuées sur le serveur LDAP, puis que le mappage des nouveaux attributs peut être placé dans le fichier ldapentry.xml. Il est recommandé de ne pas conserver les attributs suivants dans LDAP : clés générées en interne dans WebSphere Commerce, données souvent modifiées, par exemple Lastsession dans la table USERS.
Pour plus d'informations sur les attributs LDAP, consultez le site suivant : 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>
Le format du fichier ldapentry.xml est le suivant :
![]() |