Skip to content

Commit

Permalink
Fixing drift between CVS and git
Browse files Browse the repository at this point in the history
  • Loading branch information
Moodle HQ git importer committed Jan 11, 2010
1 parent de2f199 commit 9b8b84d
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 0 deletions.
13 changes: 13 additions & 0 deletions auth/ldap/db/install.php
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions auth/mnet/db/install.php
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions auth/nntp/db/install.php
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions auth/pam/db/install.php
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions auth/pop3/db/install.php
Original file line number Diff line number Diff line change
@@ -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'));

}
11 changes: 11 additions & 0 deletions auth/radius/db/install.php
Original file line number Diff line number Diff line change
@@ -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'));

}
11 changes: 11 additions & 0 deletions auth/shibboleth/db/install.php
Original file line number Diff line number Diff line change
@@ -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'));

}

0 comments on commit 9b8b84d

Please sign in to comment.