LDAP Sync and optimization parameters
Hi,
We are doing some testing and it looks like anything done within the JCR user related is syncing with LDAP on every request or so.
Our ldap_login.conf file is as below:
com.day.crx {
com.day.crx.core.CRXLoginModule sufficient
tokenExpiration="9999999"
disableNTLMAuth="true";
com.day.crx.security.ldap.LDAPLoginModule required
principal_provider.class="com.day.crx.security.ldap.principals.LDAPPrincipalProvider"
disableNTLMAuth="true"
and we are using cookie based SSO authentication. Based on the above conf file, i assumed that CQ will only sync with ldap if the user isn't found in its cache otherwise, it will use the CRXLoginModule to sync . How exactly is the cache maintained? If a new user logs into the app and maximum number of users are already cached will it replace one of the users?
1) Should we get rid of NTLM auth param?
We are looking at the optimization parameters as well
2) cacheMaxSize is by default set to 1000 what? 1000 byte/KB?
3)
| cache.expiration | The interval, in seconds, for which a principal is cached |
does this mean that even if the cache size is full the user won't be dumped out of the cache until the expiration time for the user is reached and other users are using the system.
LDAP is a very central process of our app and we are using it on publishers.