mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
MDL-8542 External db auth cleanup
* some more sync script fixing backported from HEAD
This commit is contained in:
parent
5553359aa4
commit
88178d9b78
1 changed files with 4 additions and 5 deletions
|
@ -2,9 +2,8 @@
|
||||||
/** auth_db_sync_users.php
|
/** auth_db_sync_users.php
|
||||||
*
|
*
|
||||||
* This script is meant to be called from a system cronjob to
|
* This script is meant to be called from a system cronjob to
|
||||||
* sync moodle user accounts with external database.
|
* sync moodle user accounts with external database
|
||||||
*
|
* when using internal passwords (== passwords not defined in external database).
|
||||||
* It is required for internal password format.
|
|
||||||
*
|
*
|
||||||
* Recommended cron entry:
|
* Recommended cron entry:
|
||||||
* # 5 minutes past 4am
|
* # 5 minutes past 4am
|
||||||
|
@ -23,8 +22,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
if (!empty($_SERVER['GATEWAY_INTERFACE'])) {
|
if (isset($_SERVER['REMOTE_ADDR'])) {
|
||||||
error_log("should not be called from apache!");
|
error_log("should not be called from web server!");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue