This example configures an Identity Search for each directory service. Configuring Identity Maps for multiple services is similar.
<LdapConfig>
<Tls .../>
<Services>
<Service Id="svc1" LdapClientMechanism="simple".../>
<Service Id="svc2" LdapClientMechanism="simple".../>
</Services>
<Canonicalizations>
<IdentitySearch
Ref="svc1"
Pattern="(.+)@td.example.com"
Base="dc=td,dc=example,dc=com"
Filter="(uid=${1})"
DatabaseName="svc1_${1}"
BindName="dn:${result}"/>
<IdentitySearch
Ref="svc2"
Pattern="(.+)@pioneerstd.example.com"
Base="dc=pioneerstd,dc=example,dc=com"
Filter="(uid=${2})"
DatabaseName="svc2_${1}"/>
</Canonicalizations>
</LdapConfig>
For a description of the attributes used in an <IdentitySearch> element, see Configuring an Identity Search.