Skip to content

eLearning-TUDarmstadt/moodle-cleanupusers_ldapchecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copyright: developed and maintained by TU Darmstadt

License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

userstatus_ldapchecker

A subplugin for https://github.com/eLearning-TUDarmstadt/moodle-tool_cleanupusers that uses data from an external server connected with LDAP.

Users that are no longer in the LDAP are archived by moving them to the DB table "mdl_tool_cleanupusers_archive". In the core table "mdl_user" the users will be anonymized: First name is set to "anonymous" and the user name to "anonymous+user-ID", e.g. "anonymous70".

  • username and firstname of suspended users can be customized in tool_cleanupusers The "deletetime" setting defines how long users remain archived before they are finally deleted. If users return to the LDAP within this deletetime period, they are reactivated with all previous data from "mdl_user".

Settings located at /admin/settings.php?section=cleanupusers_userstatusldapchecker

cleanupusers_csv folder contains a reworked version of archive_user_task.php from tool_cleanupusers that saves users archived by the cron in a CSV file.

Installation

  • Copy/Clone to https://YOURSITE/admin/tool/cleanupusers/userstatus/ directory
    • Alternatively use git clone https://github.com/eLearning-TUDarmstadt/moodle-cleanupusers_ldapchecker admin/tool/cleanupusers/userstatus/ldapchecker in your moodle root
  • Enable database upgrade
  • Go to https://YOURSITE/admin/settings.php?section=cleanupusers_userstatusldapchecker or Site Administration->Users->Clean up users->LDAP Checker

About

LDAP subplugin for moodle-tool_cleanupusers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages