Gracias Iñaki, en efecto el moodle lo tenemos en Unix.
Ejecuté el script pero me da el siguiente error:
Content-type: text/html
X-Powered-By: PHP/4.3.8
Set-Cookie: MoodleSession=ef32c528eb7195ae14101d946c444c2c; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: MoodleSessionTest=GCetkg9fOI; path=/
<div class="notifyproblem" align="center">Warning: Could not find any of these web server variables: $REQUEST_URI, $PHP_SELF, $SCRIPT_NAME or $URL</div><br />
Configuring temp table
connecting to ldap
<br />
<b>Warning</b>: ldap_search(): Partial search results returned: Sizelimit exceeded. in <b>/home/moodle/auth/ldap/lib.php</b> on line <b>428</b><br />
+ 1000 users
<br />
<b>Warning</b>: ldap_search(): Partial search results returned: Sizelimit exceeded. in <b>/home/moodle/auth/ldap/lib.php</b> on line <b>428</b><br />
+ 1000 users
User entries to remove: 1
<div class="notifyproblem" align="center">Se ha borrado </div><br />
User entries to add: 1001
Revived user aclprueba with idnumber id 8
Como da este error o warning entro en la administración de usuarios de moodle y no veo los datos de los usuarios del LDAP registardos en moodle, qué podrá ser?
Gracias de antemano y disculpa tantas preguntas.