Fixing drift between CVS and git

This commit is contained in:
Moodle HQ git importer 2010-01-11 10:43:40 +00:00
parent de2f199b8b
commit 9b8b84dc91
7 changed files with 79 additions and 0 deletions

13
auth/ldap/db/install.php Normal file
View File

@ -0,0 +1,13 @@
<?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'));
}
}

11
auth/mnet/db/install.php Normal file
View File

@ -0,0 +1,11 @@
<?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'));
}

11
auth/nntp/db/install.php Normal file
View File

@ -0,0 +1,11 @@
<?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'));
}

11
auth/pam/db/install.php Normal file
View File

@ -0,0 +1,11 @@
<?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'));
}

11
auth/pop3/db/install.php Normal file
View File

@ -0,0 +1,11 @@
<?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'));
}

View File

@ -0,0 +1,11 @@
<?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'));
}

View File

@ -0,0 +1,11 @@
<?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'));
}