If I restart the server then I assume all cache is gone, which means next user that logs in gets the timeout. I’m looking for a way to clear the cache and then repopulate it automatically.
I’m not sure if anyone else has ~200 users in their roster through LDAP but seems like this takes up to 1 minute to send to client which is a lot. The LDAP server is about ~5ms away so I don’t know why it takes this long.
Maybe my LDAP settings are not optimized? Here they are:
<ldap>
<host>ldapserver</host>
<port>636</port>
<baseDN>ou=corp,DC=test,DC=local</baseDN>
<adminDN>TESTDOMAIN\ldap</adminDN>
<adminPassword>ldap</adminPassword>
<connectionPoolEnabled>true</connectionPoolEnabled>
<sslEnabled>true</sslEnabled>
<ldapDebugEnabled>false</ldapDebugEnabled>
<autoFollowReferrals>true</autoFollowReferrals>
<usernameField>sAMAccountName</usernameField>
<searchFilter>(|(memberOf=CN=GROUP1,OU=Groups,OU=Corp,DC=test,DC=local)(m emberOf=CN=GROUP2,OU=Groups,OU=corp ,DC=test,DC=local)(memberOf=CN=GROUP3,OU=Groups,OU=corp,DC=test,DC=local)(membe rOf=CN=GROUP4,OU=Groups,OU=corp,DC=test,DC=local))</searchFilter>
<nameField>cn</nameField>
<emailField>mail</emailField>
<groupNameField>cn</groupNameField>
<groupMemberField>member</groupMemberField>
<groupDescriptionField>description</groupDescriptionField>
<posixMode>false</posixMode>
<groupSearchFilter>(objectClass=group)</groupSearchFilter>
</ldap>
The roster is shared with all users and it’s made up of these 4 groups.
Also, is there any way to know what the default cache size is?