Error with LDAP sync

Error with LDAP sync

by Analista de Plataforma EAD Sebastian Ramos -
Number of replies: 4
The scheduled task to sync LDAP users is failing with below error:

Execute scheduled task: Tarea de sincronización de usuarios LDAP (auth_ldap\task\sync_task)
... started 10:04:06. Current memory use 6.8MB.
Conectando con el servidor LDAP ...Creando la tabla temporal tmp_extuser
Warning: ldap_search(): Failed to create paged result control value: Bad parameter to an ldap routine (-9) in /var/www/folder/moodle/auth/ldap/auth.php on line 730
No se obtuvieron usuarios desde el LDAP. -- ¿error? -- saliendo... used 4 dbqueries
... used 0.26755905151367 seconds
Scheduled task complete: Tarea de sincronización de usuarios LDAP (auth_ldap\task\sync_task)
Enviroment
  • Centos 7
  • PHP 7.4.3
  • MariaDB 10.4
  • Moodle 3.8.2
Average of ratings: -
In reply to Analista de Plataforma EAD Sebastian Ramos

Re: Error with LDAP sync

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I'd say the error is related to the changes introduced in MDL-67118. So maybe you could add a comment in the tracker with the relevant error details, and let the developers ask for additional information if needed.

Saludos.

Iñaki.

Average of ratings: Useful (1)
In reply to Analista de Plataforma EAD Sebastian Ramos

Re: Error with LDAP sync

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Sebastian,
did LDAP sync ever work in your Moodle instance? Does it break only after e.g. a Moodle update or after some changes in the LDAP config settings?

Wondering if 0, -1, -1, LDAP_DEREF_NEVER, $servercontrols should be 0, 0, 0, LDAP_DEREF_NEVER, $servercontrols;.

HTH,
Matteo