Fix ldap driver caching

There was possibly some code missing.

----

Notice: I wasn't able to test the code. On my experimental setup of davical, it worked!