Sep 15, 2015 10:29:47 AM org.apache.shiro.realm.AuthorizingRealm getAuthorizationCacheLazyINFO: No cache or cacheManager properties have been set. Authorization cache cannot be obtained.
Apologies in advance for a multi-part question...We have LDAP auth configured with Stardog. This works great but it is clear from both LDAP logs and webconsole performance that *every* request is being passed straight through to the LDAP service for authentication.
Also in stardog server log there are zillion of these:
Sep 15, 2015 10:29:47 AM org.apache.shiro.realm.AuthorizingRealm getAuthorizationCacheLazyINFO: No cache or cacheManager properties have been set. Authorization cache cannot be obtained.Can I infer from this that auth caching is not turned on by default, but it is possible to configure Shiro with that?
If yes, would that in fact solve the issue we see with every request going to LDAP?
Finally, how would I configure Shiro with a cache? I've not used it before. Just broad hints/pointers to references would be great.
--Thanks,Conrad.
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
Thanks Mike;The question about configuring the Shiro cache was based on reading some pretty old posts referring to shiro.ini file; I guess that is no longer used.
Yes a periodic clearing strategy on the simple default Shiro cache would certainly suit our use case. Changes to/removal of credentials on our LDAP service are infrequent. We'd be happy to dial the interval right out to an hour or something because our users are internal and we could handle the potential security lag through people management. But even a fairly aggressive setting like 2 seconds would still be a big win for performance as that would save literally hundreds of Stardog - LDAP round trips when populating e.g. the web console or Empire beans. Perhaps a configuration point 'ldap.cache.interval' or similar that interprets a value of 0 to be no caching at all, with other values being interpreted as milliseconds - then the deployer has complete freedom to choose their own sweet spot between paranoia and performance. Of course the documentation should be clear on consequences of the different configuration settings.Can we put in a feature request for this?