Stefaan Destoop wrote:
Hi,
In the class EhCacheBasedUserCache, one gets the user from the cache by cache.get(username). However, as LDAP is case insensitive, the putUserInCache() can put the user in the case with a different key. I would suggest to add a boolean property "caseSensitive", defaulting to true for other people experiencing the same problem.
If you guys agree with this, I can send a modified EhCacheBasedUserCache implementation.
Cheers, Stefaan.
I'd prefer to see the LDAP provider use the cache in a consistent way, than basically making the cache accommodate it. The issue is that other people may have written cache implementations, and every such implementation would have to accommodate case insensitive usernames. It is easier if the providers always use the cache in a consistent way instead.
Cheers Ben
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Home: http://acegisecurity.sourceforge.net Acegisecurity-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
