I'm looking at Contacts LDAP bundle and I've some questions regardings its internal operation and configuration.
In particular, looking at sample configuration file (LDAPglobal.properties) I checked this property for LDAP caching:
I've configured with "anonymous" binding but it seems that no caching is applied...
Looking at source code (LdapContactInterface class), the getContactsInFolder method checks only for "AdminDN" authtype
The contentTheSameForAll method should check both for "AdminDN" and "anonymous" authtype...
As regards caching internals, I see that LdapContactInterfaceProvider uses a local List named cached_contacts in order to store LDAP Contacts.
This solution is quite easy but I think that it should be better to rely on JCS capabilities in order to provide a more cluster-consistent distributed cache.
Lastly, I found an interesting LdapUserFolderCreator class which seems unused.
Looking at LdapActivator, it seems that this class was intended to be binded to some user login event, but for now it's not-completed and/or is a work-in-progress.
Can you provide me some more detail on LdapUserFolderCreator?
In particular, looking at sample configuration file (LDAPglobal.properties) I checked this property for LDAP caching:
Code:
# Specify the refresh interval for the cached contacts. If authtype is # "anonymous" or "AdminDN" the contacts are cached and refreshed in the # background in the interval specified here (given in ms) com.openexchange.contacts.ldap.context111.LDAPglobal.refreshinterval=
Looking at source code (LdapContactInterface class), the getContactsInFolder method checks only for "AdminDN" authtype
Code:
public SearchIterator<Contact> getContactsInFolder (... ... final List<Contact> arrayList; // If a AdminDN is used, all users see the same contacts, so we can cache them... if (contentTheSameForAll()) {
As regards caching internals, I see that LdapContactInterfaceProvider uses a local List named cached_contacts in order to store LDAP Contacts.
This solution is quite easy but I think that it should be better to rely on JCS capabilities in order to provide a more cluster-consistent distributed cache.
Lastly, I found an interesting LdapUserFolderCreator class which seems unused.
Looking at LdapActivator, it seems that this class was intended to be binded to some user login event, but for now it's not-completed and/or is a work-in-progress.
Can you provide me some more detail on LdapUserFolderCreator?
Comment