forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Moodle HQ git importer
committed
Jan 11, 2010
1 parent
de2f199
commit 9b8b84d
Showing
7 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); | ||
|
||
} |