The library ldap is not available creating ldap auth

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 15.0.5): 15.0.5
Operating system and version (eg, Ubuntu 17.04): centos7
Apache or nginx version (eg, Apache 2.4.25): httpd apache 2.4.6
PHP version (eg, 7.1): 7.2.10

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Try to enable LDAP user and group backend

The output of your Nextcloud log in Admin > Logging:

Do not understand what is asked

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => 'ocfp4edx1cvs',
  'passwordsalt' => '5KawgSMlTbCwS0CneEeLj4mX1VMctp',
  'secret' => 'fsIRO53ra+M6hjwtJZqyqffMq6wMtF6ex0r5SB+ogbk08GeJ',
  'trusted_domains' =>
  array (
    0 => '',
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => '',
  'installed' => true,
  'maintenance' => false,
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbuser' => 'root',


[Wed Mar 27 14:11:03.501202 2019] [php7:error] [pid 6243] [client] PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/nextcloud/lib/private/DB/Connection.php:64\nStack trace:\n#0 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()\n#1 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()\n#2 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()\n#3 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()\n#4 /var/www/html/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)\n#5 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrin in /var/www/html/nextcloud/lib/private/DB/Connection.php on line 64
[Wed Mar 27 14:13:21.732642 2019] [authz_core:error] [pid 6504] [client] AH01630: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata
[Wed Mar 27 14:26:47.518378 2019] [authz_core:error] [pid 6534] [client] AH01630: client denied by server configuration: /var/www/html/nextcloud/data/.ocdata