Hi all,
I have encountered an issue where we are trying to run auth_ldap_sync_users.php from command line but we are getting a failed to connect database error.
Our setup:
2 Linux servers
1 web server where all of Moodle sits
1 Moodles database
Both servers are running Redhat Linux 5
Connecting to the web server to run auth_ldap_sync_users.php
We are receiving this response:
# php auth_ldap_sync_users.php
Configuring temp tablePHP Notice: Unknown table 'mdl_extuser'<br /><br />DROP TEMPORARY TABLE mdl_extuser<ul style="text-align: left"><li>line 103 of lib/dmllib.php: call to debugging()</li><li>line 2298 of lib/dmllib.php: call to execute_sql()</li><li>line 588 of auth/ldap/auth.php: call to execute_sql_arr()</li><li>line 44 of auth/ldap/auth_ldap_sync_users.php: call to auth_plugin_ldap->sync_users()</li></ul> in /var/www/html/lib/weblib.php on line 6943Creating temp table mdl_extuserPHP Notice: Access denied for user 'moodle'@' [moodle webserver ip address] ' to database 'moodle'<br /><br />CREATE TEMPORARY TABLE mdl_extuser (username VARCHAR(64), PRIMARY KEY (username)) TYPE=MyISAM<ul style="text-align: left"><li>line 103 of lib/dmllib.php: call to debugging()</li><li>line 590 of auth/ldap/auth.php: call to execute_sql()</li><li>line 44 of auth/ldap/auth_ldap_sync_users.php: call to auth_plugin_ldap->sync_users()</li></ul> in /var/www/html/lib/weblib.php on line 6943Failed to create temporary users table - aborting
Any help would be appreciated!
Thanks
Simon