LDAP configuration wrong

I’m trying to set up LDAP auth and have error about uid. I use auto-install when install my distr.

[/details]

Nextcloud version: 25.0.7
Operating system and version: Ubuntu 22.04
PHP version: 8.1.20

The issue you are facing:

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

Steps to replicate it:

  1. server like - dc.example.com
  2. user like - user@example.com
  3. password for user
  4. DN like - CN=user,DN=example,DN=com

The output of your Nextcloud log in Admin > Logging:

Warning	user_ldap	Configuration Error (prefix s01): login filter does not contain %uid place holder.	
2023-06-19T18:37:36+0300

Warning	user_ldap	Configuration Error (prefix s01): No LDAP Login Filter given!	
2023-06-19T18:37:36+0300

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

<?php
$CONFIG = array (
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/snap/nextcloud/current/htdocs/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
      'url' => '/extra-apps',
      'writable' => true,
    ),
  ),
  'supportedDatabases' =>
  array (
    0 => 'mysql',
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/tmp/sockets/redis.sock',
    'port' => 0,
  ),
  'log_type' => 'file',
  'logfile' => '/var/snap/nextcloud/current/logs/nextcloud.log',
  'logfilemode' => 416,
  'instanceid' => '...',
  'passwordsalt' => '...',
  'secret' => '',
  'trusted_domains' =>
  array (
    0 => '172.18.80.80',
    1 => 'example.com',
  ),
'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '25.0.7.1',
  'overwrite.cli.url' => 'http://example.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '...',
  'installed' => true,
  'maintenance' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
);

The output of your Apache/nginx/system log in /var/log/____:

172.18.22.19 - - - [19/Jun/2023:19:20:26 +0300] "POST /index.php/apps/user_ldap/ajax/wizard.php HTTP/1.1" 200 1302 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0"
172.18.22.19 - - - [19/Jun/2023:19:20:31 +0300] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 800 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0"

Check the configuration under your Users tab:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/user_auth_ldap.html#users-tab

That’s where the login filter parameters are defined.