You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2017-01-10 13:08:15

ecanton
Member
Registered: 2016-10-18
Posts: 55

Error syncing ldap users

Good,

I am trying to massively synchronize users after changing the LDAP server.

I can not do it, it fails continuously, although the connection test is good.

I am trying to get users on / off based on whether they exist in LDAP or not.

Any ideas? Thank you very much

*** PHP Warning(2): ldap_search(): Partial search results returned: Sizelimit exceeded
  Backtrace :
  :
  inc/authldap.class.php:1377                        ldap_search()
  inc/authldap.class.php:1504                        AuthLDAP::searchForUsers()
  inc/authldap.class.php:1243                        AuthLDAP::getAllUsers()
  inc/authldap.class.php:2939                        AuthLDAP::showLdapUsers()
  front/ldap.import.php:72                           AuthLDAP::searchUser()

Last edited by ecanton (2017-01-10 13:09:52)

Offline

#2 2017-01-16 13:36:16

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: Error syncing ldap users

If it's a manual synchronization, it's the limit of the LDAP (1000).
You must synchonize by date to reduce this max


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2019-12-11 00:49:16

hrangelglobal
Member
Registered: 2019-12-10
Posts: 8

Re: Error syncing ldap users

How can I search by number of users instead of searching by dates

Offline

#4 2022-06-22 09:03:23

WebGreg
Member
Registered: 2020-02-27
Posts: 727

Re: Error syncing ldap users

Hi. The same question - what it means "synchronize by date"? I have:

[2022-06-22 09:00:02] glpiphplog.WARNING:   *** PHP Warning (2): ldap_search(): Partial search results returned: Sizelimit exceeded in /var/www/html/glpi/src/AuthLDAP.php at line 1869

  Backtrace :
  src/AuthLDAP.php:1869                              ldap_search()
  src/AuthLDAP.php:2027                              AuthLDAP::searchForUsers()
  src/Console/Ldap/SynchronizeUsersCommand.php:293   AuthLDAP::getAllUsers()
  vendor/symfony/console/Command/Command.php:298     Glpi\Console\Ldap\SynchronizeUsersCommand->execute()
  vendor/symfony/console/Application.php:1015        Symfony\Component\Console\Command\Command->run()
  src/Console/Application.php:256                    Symfony\Component\Console\Application->doRunCommand()
  vendor/symfony/console/Application.php:299         Glpi\Console\Application->doRunCommand()
  vendor/symfony/console/Application.php:171         Symfony\Component\Console\Application->doRun()
  bin/console:122                                    Symfony\Component\Console\Application->run()



My filter: (&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

Last edited by WebGreg (2022-06-22 09:12:10)


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#5 2022-06-22 09:36:26

WebGreg
Member
Registered: 2020-02-27
Posts: 727

Re: Error syncing ldap users

I have modified the search filter to limit it to members of a specific group. Time will tell if this proves to be sufficient.

(&(objectClass=user)(objectCategory=person)(memberOf:1.2.840.113556.1.4.1941:= CN=group_name,OU=groups,DC=domain,DC=com)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#6 2022-06-23 13:53:18

WebGreg
Member
Registered: 2020-02-27
Posts: 727

Re: Error syncing ldap users

The error still shows up sad


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

Board footer

Powered by FluxBB