LDAP is working! But doesn't show usernames for some reason?

Nextcloud version (eg, 18.0.2): 19.0.1
Operating system and version (eg, Ubuntu 20.04): CentOS 8.2
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.37
PHP version (eg, 7.1): PHP 7.4.9

The issue you are facing:

LDAP usernames work for login, but do not show up on the users panel. See my attached image, I’m only getting the ipaUniqueID attribute where usernames should show up. That said, I have tried logging out of my root account and logging into my standard LDAP user - using my FreeIPA credentials works just fine. Per this post, I got usernames to show up where I want them to, but I’m fairly certain that that’s because I’ve simply remapped the UUID to my uid LDAP attribute (from ipaUniqueID), not because it is correctly pulling usernames from uid, as it should be.

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

Steps to replicate it:

  1. Run a FreeIPA 4.6.6 server with LDAP
  2. Connect Nextcloud to that LDAP server
  3. Observe

The output of your Nextcloud log in Admin > Logging:
I’m getting these two errors whenever I try to do stuff with LDAP, like access users, etc. No idea what it means, but:

Error    PHP    Trying to access array offset on value of type null at /var/www/html/nextcloud/apps/user_ldap/lib/Wizard.php#367	
Error    PHP    ldap_get_attributes() expects parameter 2 to be resource, bool given at /var/www/html/nextcloud/apps/user_ldap/lib/LDAP.php#341

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

$CONFIG = array (
  'instanceid' => '<REMOVED>',
  'overwrite.cli.url' => 'https://www.example.com/',
  'htaccess.RewriteBase' => '/',
  'passwordsalt' => '<REMOVED>',
  'secret' => '<REMOVED>',
  'trusted_domains' =>
  array (
    0 => '1.2.3.4',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '19.0.1.1',
  'dbname' => '<REMOVED>',
  'dbhost' => '<REMOVED>',
  'dbport' => '',
  'dbtableprefix' => '<REMOVED>',
  'mysql.utf8mb4' => true,
  'dbuser' => '<REMOVED>',
  'dbpassword' => '<REMOVED>',
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
);

The output of your Apache/nginx/system log in /var/log/____:
I’m on CentOS, so this actually came from /var/log/httpd/access_log - sensitive information has been removed, but I basically cut the last part of the log after I cleared user mappings and tried again.

a.b.c.d - - [05/Aug/2020:17:51:56 -0400] "POST /apps/user_ldap/ajax/clearMappings.php HTTP/1.1" 200 20 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:17 -0400] "GET /settings/users HTTP/1.1" 200 28890 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:18 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 3380 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:18 -0400] "GET /cron.php HTTP/1.1" 200 20 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:28 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 401 106 "http://a.b.c.d/apps/files/?dir=/Documents&fileid=744" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:48.0) Gecko/20100101 Firefox/48.0"
a.b.c.d - - [05/Aug/2020:17:52:19 -0400] "GET /ocs/v2.php/cloud/users/details?offset=0&limit=25&search= HTTP/1.1" 200 10890 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 510 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 589 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 542 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 658 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 452 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 636 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 292 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 510 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 663 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 477 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:50 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 452 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 402 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 669 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 220 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 542 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 658 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 589 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 489 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 475 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 398 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 463 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 288 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:43 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 636 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:50 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 402 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:51 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 398 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:52 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 477 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:52 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 292 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:52 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 288 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:53 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 489 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:53 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 663 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:54 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 463 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:54 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 663 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:54 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 475 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:55 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 590 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:55 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 623 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:55 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 637 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:56 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 601 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:57 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 664 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:56 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 571 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:57 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 669 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:57 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 640 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:52:58 -0400] "GET /avatar/uid/32?v=1 HTTP/1.1" 200 220 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:53:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:53:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:54:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:54:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:55:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:55:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:56:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:56:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:57:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:57:28 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 401 106 "http://a.b.c.d/apps/files/?dir=/Documents&fileid=744" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:48.0) Gecko/20100101 Firefox/48.0"
a.b.c.d - - [05/Aug/2020:17:57:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:58:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:58:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:59:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:17:59:32 -0400] "GET /csrftoken HTTP/1.1" 200 101 "http://a.b.c.d/apps/files/?dir=/Documents&fileid=744" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:48.0) Gecko/20100101 Firefox/48.0"
a.b.c.d - - [05/Aug/2020:17:59:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:00:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:00:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:01:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:01:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:02:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:02:28 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 401 106 "http://a.b.c.d/apps/files/?dir=/Documents&fileid=744" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:48.0) Gecko/20100101 Firefox/48.0"
a.b.c.d - - [05/Aug/2020:18:02:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:03:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:03:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:04:18 -0400] "GET /csrftoken HTTP/1.1" 200 103 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:04:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:04:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:05:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:05:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:06:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"
a.b.c.d - - [05/Aug/2020:18:06:49 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0"

Did you link to the LDAP with uid from the start?
Or did you change the Expert tab page Internal Username Attribute after the link was established?

I think it needs to be done properly from the start to work as you expect it to…

I changed it in the Expert tab after it wasn’t working - but it should have been working from the start. As Nextcloud itself says, it automatically tries to fetch usernames either from the uid attribute (in the case of LDAP) or from the sAMAccountName attribute (in the case of AD).

It didn’t do that natively for me, and my LDAP filter is literally this:

(&(&(|(objectclass=person))(|
(memberof=cn=accounting,cn=groups,cn=accounts,dc=zonit,dc=com)
(memberof=cn=admins,cn=groups,cn=accounts,dc=zonit,dc=com)
(memberof=cn=ip,cn=groups,cn=accounts,dc=zonit,dc=com)
(memberof=cn=it,cn=groups,cn=accounts,dc=zonit,dc=com)
(memberof=cn=manufacturing,cn=groups,cn=accounts,dc=zonit,dc=com)
(memberof=cn=nextcloud-admins,cn=groups,cn=accounts,dc=zonit,dc=com)
(memberof=cn=nextcloud-users,cn=groups,cn=accounts,dc=zonit,dc=com)
(memberof=cn=zeng,cn=groups,cn=accounts,dc=zonit,dc=com)
(memberof=cn=zfinance,cn=groups,cn=accounts,dc=zonit,dc=com)
(memberof=cn=zgreen,cn=groups,cn=accounts,dc=zonit,dc=com)
(memberof=cn=zops,cn=groups,cn=accounts,dc=zonit,dc=com)
(memberof=cn=zsales,cn=groups,cn=accounts,dc=zonit,dc=com)))
(|(uid=%uid))) # emphasis here, I'm setting the %uid as the placeholder from the uid attribute but it did not take.

I’ve used it only with AD, aka sAMAccountName

This is old but could be useful…

Hi! How are you? Did you find the solutions?
Thanks