globalbus commented on PR #1945:
URL: https://github.com/apache/karaf/pull/1945#issuecomment-3180915212

   @mattrpav 
   I also modified LDAPCache behaviour on my own.
   I'm only clearing cache pool on Activator stop, not on start.
   
   The problem is to evict cache. When I used ApacheDS, it support event 
protocol to launch ObjectChangeListener (that has own drawbacks, like it's need 
a connection without read timeout). OpenLDAP does not provide support for this.
   I finished with custom webhook to clear cache (propagated by JMS to all 
nodes). But cache can be cleared for all users, not only for changed one, so 
it's suboptimal.
   
   Anyway, LDAPCache "static" field with caches is a pain in ass. Only way to 
extend functionality is to copy/paste/fork code. But I don't have better idea 
for it at the moment. Maybe we could put an instance to 
javax.security.auth.login.AppConfigurationEntry.options and fetch it from 
there, instead of static methods? I'm not tried this approach yet.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to