<security xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="urn:infinispan:server:{schemaversion} https://infinispan.org/schemas/infinispan-server-{schemaversion}.xsd"
          xmlns="urn:infinispan:server:{schemaversion}">
   <security-realms>
      <security-realm name="default">
        <ldap-realm name="ldap" <1>
                    url="ldap://my-ldap-server:10389" <2>
                    principal="uid=admin,ou=People,dc=infinispan,dc=org" <3>
                    credential="strongPassword"
                    connection-timeout="3000" read-timeout="30000" <4>
                    connection-pooling="true" referral-mode="ignore"
                    page-size="30"
                    direct-verification="true"> <5>
            <identity-mapping rdn-identifier="uid" <6>
                              search-dn="ou=People,dc=infinispan,dc=org"> <7>
               <attribute-mapping> <8>
                  <attribute from="cn"
                             to="Roles"
                             filter="(&amp;(objectClass=groupOfNames)(member={1}))"
                             filter-dn="ou=Roles,dc=infinispan,dc=org"/>
               </attribute-mapping>
            </identity-mapping>
         </ldap-realm>
      </security-realm>
   </security-realms>
</security>
