LDAP: use memcache if available
Merge pull request #4486 from owncloud/ldap_adjust_cache

LDAP: use memcache if available