libdir.'/blocklib.php'); require_once($CFG->dirroot.'/course/lib.php'); require_once($CFG->dirroot.'/mod/resource/lib.php'); require_once($CFG->dirroot.'/mod/forum/lib.php'); if (!is_enabled_auth('ldap')) { echo "Plugin not enabled!"; die; } $ldapauth = get_auth_plugin('ldap'); $ldapauth->sync_users(1000, true); ?>