Fixed so ldap cache can be disabled
Fixed issue where ldap groups cache wasn't used correctly