by Ken Task.
From this last reponse, you've not said if the page settings (250) were the same on both instances of Moodle ... only repeating that it doesn't work. :\ The error reported mentioned that the Moodle was confiigured for version 2 ... not 3 - which I believe is the recommended setting.
There is a command line only script in moodlecode/auth/ldap/cli/
called sync_users.php
notes in the script say:
* Notes:
* - it is required to use the web server account when executing PHP CLI scripts
* - you need to change the "www-data" to match the apache user account
* - use "su" if "sudo" not available
* - If you have a large number of users, you may want to raise the memory limits
* by passing -d momory_limit=256M
* - For debugging & better logging, you are encouraged to use in the command line:
* -d log_errors=1 -d error_reporting=E_ALL -d display_errors=0 -d html_errors=0
* - If you have a large number of users, you may want to raise the memory limits
* by passing -d memory_limit=256M
* - For debugging & better logging, you are encouraged to use in the command line:
* -d log_errors=1 -d error_reporting=E_ALL -d display_errors=0 -d html_errors=0
So you could build a command with debugging turned on, logging turned on, and giving the script more memory as well.
I have used this one as root:
php -d log_errors=1 -d error_reporting=E_ALL -d display_errors=0 -d html_errors=0 ./sync_users.php
When executed it takes a long time ... clips of output:
Connecting to LDAP server...
Creating temporary table tmp_extuser
...............................
Got 1812 records from LDAP
User entries to be updated: 4472
Updating user aa250794 id 1237 - Skipped
Updating user aa250891 id 1890
Updating user aa251138 id 3909 - Skipped
Updating user aa251239 id 4017
bunch more
User entries to be added: 118
Inserted user ab331912 id 4576
Inserted user ab371800 id 4577
Inserted user ad261212 id 4578
Inserted user ag240904 id 4579
Inserted user aj311368 id 4580
and that how it ends.
Config is version 3 of LDAP and pointed to ou=student,ou=xxx hs,dc=xxx,dc=net
Do this only on the test system as it will read parameter settings in the LDAP config and if that is set too high in the LDAP (in other words just to the DC ... top level of the domain ... and no user OU's, you might be getting machine names and all sorts of junk as far as Moodle user accounts are concerned.
Not sure how many folks run Oracle Linux ... sounds commercial to me ... and thus you might need to get/seek support from Oracle.
Most linuxes do have command line tools for using LDAP ... man -k ldap to locate/find what you have in Oracle Linux. One that's not really user friendly is 'ldapsearch'. If it does exist on your Oracle system, man ldapsearch will show you how to use in that distro.
Am at the end of any suggestions, cept to test networking ... LDAP port opened to the Moodle server not available or opened? nmap is a handy network scanner. Install that on your system and scan the LDAP server:
nmap -P0 IPaddressofLDAPserver
is a simple command that might reveal alot.
'spirit of sharing', Ken