<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Nuxeo 6.0 and LDAP Caching in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-6-0-and-ldap-caching/m-p/317741#M4742</link>
    <description>&lt;P&gt;Hello,
I found the solution.&lt;/P&gt;
&lt;P&gt;In the contribution for LDAP users and groups the tags '&lt;CACHETIMEOUT&gt;' and '&lt;CACHEMAXSIZE&gt;' are no longer used. They have been replaced with '&lt;CACHEENTRYNAME&gt;' and '&lt;CACHEENTRYWITHOUTREFERENCESNAME&gt;'.
In thoses tags you put the default ldap cache name:&lt;/CACHEENTRYWITHOUTREFERENCESNAME&gt;&lt;/CACHEENTRYNAME&gt;&lt;/CACHEMAXSIZE&gt;&lt;/CACHETIMEOUT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;ldap-user-entry-cache&lt;/LI&gt;
&lt;LI&gt;ldap-user-entry-cache-without-references&lt;/LI&gt;
&lt;LI&gt;ldap-group-entry-cache&lt;/LI&gt;
&lt;LI&gt;ldap-group-entry-cache-without-references&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Or you can define your own custom caches with the following contribution:&lt;/P&gt;
&lt;P&gt;&lt;REQUIRE&gt;org.nuxeo.ecm.core.cache.config&lt;/REQUIRE&gt;
&lt;EXTENSION target="org.nuxeo.ecm.core.cache.CacheService" point="caches"&gt;
&lt;CACHE class="org.nuxeo.ecm.core.cache.InMemoryCacheImpl" name="your-ldap-user-entry-cache"&gt;
&lt;TTL&gt;60&lt;/TTL&gt;&lt;!-- minutes --&gt;
100000
500
&lt;/CACHE&gt;
&lt;CACHE class="org.nuxeo.ecm.core.cache.InMemoryCacheImpl" name="your-ldap-user-entry-cache-without-references"&gt;
&lt;TTL&gt;60&lt;/TTL&gt;&lt;!-- minutes --&gt;
100000
500
&lt;/CACHE&gt;
&lt;CACHE class="org.nuxeo.ecm.core.cache.InMemoryCacheImpl" name="your-ldap-group-entry-cache"&gt;
&lt;TTL&gt;60&lt;/TTL&gt;&lt;!-- minutes --&gt;&lt;BR /&gt; /&amp;gt;
100000
500
&lt;/CACHE&gt;
&lt;CACHE class="org.nuxeo.ecm.core.cache.InMemoryCacheImpl" name="your-ldap-group-entry-cache-without-references"&gt;
100000
&lt;TTL&gt;60&lt;/TTL&gt;&lt;!-- minutes --&gt;
500
&lt;/CACHE&gt;
&lt;/EXTENSION&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2015 11:53:45 GMT</pubDate>
    <dc:creator>zyx974_</dc:creator>
    <dc:date>2015-03-17T11:53:45Z</dc:date>
    <item>
      <title>Nuxeo 6.0 and LDAP Caching</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-6-0-and-ldap-caching/m-p/317740#M4741</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm using LDAP backend for user authentication described &lt;A href="http://doc.nuxeo.com/display/ADMINDOC/How+to+Configure+a+Multidirectory+for+Users+and+Groups"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I'm facing the following problem : Nuxeo 6.0-HF05 seems to not cache LDAP entries and make a lot of connections to LDAP server with &lt;STRONG&gt;every&lt;/STRONG&gt; requests (WebDAV requests are very slow for example because of that).
We don't have this beahviour with Nuxeo 5.6 where LDAP connections is limited and WebDAV access faster.&lt;/P&gt;
&lt;P&gt;The log show a very lot of :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2015-03-11 14:25:23,222 DEBUG [http-bio-0.0.0.0-8080-exec-23] [org.nuxeo.ecm.directory.ldap.LDAPSession] LDAPSession.getLdapEntry(app_ad_admins, false): LDAP search base='dc=xxxxx,dc=xx' filter='(&amp;amp;(name={0})(&amp;amp;(&amp;amp;(objectClass=group))(name=*)))'  args='app_ad_admins' scope='2' [LDAPSession '602931589231417701' for directory groupLDAPDirectory]
2015-03-11 14:25:23,224 DEBUG [http-bio-0.0.0.0-8080-exec-23] [org.nuxeo.ecm.directory.ldap.LDAPSession] LDAPSession.getLdapEntry(app_ad_admins, false): LDAP search base='dc=xxxxx,dc=xx' filter='(&amp;amp;(name={0})(&amp;amp;(&amp;amp;(objectClass=group))(name=*)))'  args='app_ad_admins' scope='2' =&amp;gt; found: CN=app_ad_admins,OU=xx,OU=xxxxxxxxxxx,DC=xxxxx,DC=xx [LDAPSession '602931589231417701' for directory groupLDAPDirectory]  
2015-03-11 14:25:23,224 DEBUG [http-bio-0.0.0.0-8080-exec-23] [org.nuxeo.ecm.directory.ldap.LDAPSession] LDAPSession.getLdapEntry(app_ad_admins, true): LDAP search base='dc=xxxxx,dc=xx' filter='(&amp;amp;(name={0})(&amp;amp;(&amp;amp;(objectClass=group))(name=*)))'  args='app_ad_admins' scope='2' [LDAPSession '602931597821352295' for directory groupLDAPDirectory]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there a parameter to force caching other than &amp;lt; cacheTimeout &amp;gt; ?
Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2015 11:59:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-6-0-and-ldap-caching/m-p/317740#M4741</guid>
      <dc:creator>zyx974_</dc:creator>
      <dc:date>2015-03-11T11:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo 6.0 and LDAP Caching</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-6-0-and-ldap-caching/m-p/317741#M4742</link>
      <description>&lt;P&gt;Hello,
I found the solution.&lt;/P&gt;
&lt;P&gt;In the contribution for LDAP users and groups the tags '&lt;CACHETIMEOUT&gt;' and '&lt;CACHEMAXSIZE&gt;' are no longer used. They have been replaced with '&lt;CACHEENTRYNAME&gt;' and '&lt;CACHEENTRYWITHOUTREFERENCESNAME&gt;'.
In thoses tags you put the default ldap cache name:&lt;/CACHEENTRYWITHOUTREFERENCESNAME&gt;&lt;/CACHEENTRYNAME&gt;&lt;/CACHEMAXSIZE&gt;&lt;/CACHETIMEOUT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;ldap-user-entry-cache&lt;/LI&gt;
&lt;LI&gt;ldap-user-entry-cache-without-references&lt;/LI&gt;
&lt;LI&gt;ldap-group-entry-cache&lt;/LI&gt;
&lt;LI&gt;ldap-group-entry-cache-without-references&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Or you can define your own custom caches with the following contribution:&lt;/P&gt;
&lt;P&gt;&lt;REQUIRE&gt;org.nuxeo.ecm.core.cache.config&lt;/REQUIRE&gt;
&lt;EXTENSION target="org.nuxeo.ecm.core.cache.CacheService" point="caches"&gt;
&lt;CACHE class="org.nuxeo.ecm.core.cache.InMemoryCacheImpl" name="your-ldap-user-entry-cache"&gt;
&lt;TTL&gt;60&lt;/TTL&gt;&lt;!-- minutes --&gt;
100000
500
&lt;/CACHE&gt;
&lt;CACHE class="org.nuxeo.ecm.core.cache.InMemoryCacheImpl" name="your-ldap-user-entry-cache-without-references"&gt;
&lt;TTL&gt;60&lt;/TTL&gt;&lt;!-- minutes --&gt;
100000
500
&lt;/CACHE&gt;
&lt;CACHE class="org.nuxeo.ecm.core.cache.InMemoryCacheImpl" name="your-ldap-group-entry-cache"&gt;
&lt;TTL&gt;60&lt;/TTL&gt;&lt;!-- minutes --&gt;&lt;BR /&gt; /&amp;gt;
100000
500
&lt;/CACHE&gt;
&lt;CACHE class="org.nuxeo.ecm.core.cache.InMemoryCacheImpl" name="your-ldap-group-entry-cache-without-references"&gt;
100000
&lt;TTL&gt;60&lt;/TTL&gt;&lt;!-- minutes --&gt;
500
&lt;/CACHE&gt;
&lt;/EXTENSION&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2015 11:53:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-6-0-and-ldap-caching/m-p/317741#M4742</guid>
      <dc:creator>zyx974_</dc:creator>
      <dc:date>2015-03-17T11:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo 6.0 and LDAP Caching</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-6-0-and-ldap-caching/m-p/317742#M4743</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2015 23:37:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-6-0-and-ldap-caching/m-p/317742#M4743</guid>
      <dc:creator>mhilaire_</dc:creator>
      <dc:date>2015-03-17T23:37:43Z</dc:date>
    </item>
  </channel>
</rss>

