diff -ruN ldap.orig/auth.php ldap/auth.php
--- ldap.orig/auth.php	2014-01-11 15:57:34.000000000 +0100
+++ ldap/auth.php	2014-02-18 18:37:19.022545906 +0100
@@ -666,6 +666,30 @@
     }
 
     /**
+     * Called from all enabled auth plugins that contain this method
+     * @return void
+     */
+    public function cron() {
+        global $CFG;
+
+        $this->auth_plugin_ldap();
+        if (!isset($this->config->last_cron)) {
+            set_config('last_cron', 0, $this->pluginconfig);
+        }
+
+        // notify once an hour only
+        if ($this->config->last_cron == date('Ymdh')) {
+            return;
+        }
+
+        print("Starting synchronization for for ldap auth plugin...");
+        $this->sync_users(true);
+        print("finished.\n");
+        set_config('last_cron', date('Ymdh'), $this->pluginconfig);
+
+    }
+
+    /**
      * Syncronizes user fron external LDAP server to moodle user table
      *
      * Sync is now using username attribute.
