From a0e148e88bee8e6eb2b54f54c0de645aaed6436b Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Mon, 21 Aug 2006 09:32:33 +0000 Subject: [PATCH] Some relaxed auth checking: * All %wik% databases will have access from wikiuser / wikiadmin. * Our current C class allowed to connect. Might be restricted in future again, though * Old style of passwords is enforced --- maintenance/ourusers.php | 37 +++++-------------------------------- 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/maintenance/ourusers.php b/maintenance/ourusers.php index 0d625571c5..8a723a084d 100644 --- a/maintenance/ourusers.php +++ b/maintenance/ourusers.php @@ -39,45 +39,18 @@ if ( @$argv[1] == 'yaseo' ) { } else { $hosts = array( 'localhost', - '207.142.131.194', - '207.142.131.195', - '207.142.131.196', - '207.142.131.197', - '207.142.131.198', - '207.142.131.199', - '207.142.131.221', - '207.142.131.226', - '207.142.131.227', - '207.142.131.228', - '207.142.131.229', - '207.142.131.230', - '207.142.131.231', - '207.142.131.232', - '207.142.131.233', - '207.142.131.234', - '207.142.131.237', - '207.142.131.238', - '207.142.131.239', - '207.142.131.243', - '207.142.131.244', - '207.142.131.249', - '207.142.131.250', - '207.142.131.216', '10.0.%', + '66.230.200.%', ); } $databases = array( - '%wikibooks', - '%wiki', - '%wikiquote', - '%wiktionary', - '%wikisource', - '%wikinews', - '%wikiversity', - '%wikimedia', + '%wik%', ); +print "/*!40100 set old_passwords=1 */;" +print "/*!40100 set global old_passwords=1 */;" + foreach( $hosts as $host ) { print "--\n-- $host\n--\n\n-- wikiuser\n\n"; print "GRANT REPLICATION CLIENT,PROCESS ON *.* TO 'wikiuser'@'$host' IDENTIFIED BY '$wikiuser_pass';\n"; -- 2.20.1