acquireLDAPCache: fix recursive function call