--- /dev/null
+<?php
+
+function xmldb_auth_ldap_install() {
+ global $CFG, $DB;
+
+ // upgrade from 1.9.x, introducing version.php
+
+ // remove cached passwords, we do not need them for this plugin, but only if internal
+ if (get_config('auth/ldap', 'preventpassindb')) {
+ $DB->set_field('user', 'password', 'not cached', array('auth'=>'ldap'));
+ }
+
+}
--- /dev/null
+<?php
+
+function xmldb_auth_mnet_install() {
+ global $CFG, $DB;
+
+ // upgrade from 1.9.x, introducing version.php
+
+ // remove cached passwords, we do not need them for this plugin
+ $DB->set_field('user', 'password', 'not cached', array('auth'=>'mnet'));
+
+}
--- /dev/null
+<?php
+
+function xmldb_auth_nntp_install() {
+ global $CFG, $DB;
+
+ // upgrade from 1.9.x, introducing version.php
+
+ // remove cached passwords, we do not need them for this plugin
+ $DB->set_field('user', 'password', 'not cached', array('auth'=>'nntp'));
+
+}
--- /dev/null
+<?php
+
+function xmldb_auth_pam_install() {
+ global $CFG, $DB;
+
+ // upgrade from 1.9.x, introducing version.php
+
+ // remove cached passwords, we do not need them for this plugin
+ $DB->set_field('user', 'password', 'not cached', array('auth'=>'pam'));
+
+}
--- /dev/null
+<?php
+
+function xmldb_auth_pop3_install() {
+ global $CFG, $DB;
+
+ // upgrade from 1.9.x, introducing version.php
+
+ // remove cached passwords, we do not need them for this plugin
+ $DB->set_field('user', 'password', 'not cached', array('auth'=>'pop3'));
+
+}
--- /dev/null
+<?php
+
+function xmldb_auth_radius_install() {
+ global $CFG, $DB;
+
+ // upgrade from 1.9.x, introducing version.php
+
+ // remove cached passwords, we do not need them for this plugin
+ $DB->set_field('user', 'password', 'not cached', array('auth'=>'radius'));
+
+}
--- /dev/null
+<?php
+
+function xmldb_auth_shibboleth_install() {
+ global $CFG, $DB;
+
+ // upgrade from 1.9.x, introducing version.php
+
+ // remove cached passwords, we do not need them for this plugin
+ $DB->set_field('user', 'password', 'not cached', array('auth'=>'shibboleth'));
+
+}