Enable " LDAP user and group backend" grayed out. This app cannot be installed because the following dependencies are not fulfilled: The library ldap is not available

You should check which php version you are using and if the module has correctly been loaded. This can easily been done by running a php script which contains the following code:

<?php phpinfo() ?>