]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing drift between CVS and git
authorMoodle HQ git importer <gitimport@server2.moodle.com>
Mon, 11 Jan 2010 10:43:40 +0000 (10:43 +0000)
committerMoodle HQ git importer <gitimport@server2.moodle.com>
Mon, 11 Jan 2010 10:43:40 +0000 (10:43 +0000)
auth/ldap/db/install.php [new file with mode: 0644]
auth/mnet/db/install.php [new file with mode: 0644]
auth/nntp/db/install.php [new file with mode: 0644]
auth/pam/db/install.php [new file with mode: 0644]
auth/pop3/db/install.php [new file with mode: 0644]
auth/radius/db/install.php [new file with mode: 0644]
auth/shibboleth/db/install.php [new file with mode: 0644]

diff --git a/auth/ldap/db/install.php b/auth/ldap/db/install.php
new file mode 100644 (file)
index 0000000..f508bf8
--- /dev/null
@@ -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'));
+    }
+
+}
diff --git a/auth/mnet/db/install.php b/auth/mnet/db/install.php
new file mode 100644 (file)
index 0000000..4f17f6d
--- /dev/null
@@ -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'));
+
+}
diff --git a/auth/nntp/db/install.php b/auth/nntp/db/install.php
new file mode 100644 (file)
index 0000000..bfca556
--- /dev/null
@@ -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'));
+
+}
diff --git a/auth/pam/db/install.php b/auth/pam/db/install.php
new file mode 100644 (file)
index 0000000..1e94b9f
--- /dev/null
@@ -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'));
+
+}
diff --git a/auth/pop3/db/install.php b/auth/pop3/db/install.php
new file mode 100644 (file)
index 0000000..d5cc2dd
--- /dev/null
@@ -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'));
+
+}
diff --git a/auth/radius/db/install.php b/auth/radius/db/install.php
new file mode 100644 (file)
index 0000000..5387cef
--- /dev/null
@@ -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'));
+
+}
diff --git a/auth/shibboleth/db/install.php b/auth/shibboleth/db/install.php
new file mode 100644 (file)
index 0000000..3033583
--- /dev/null
@@ -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'));
+
+}