We don't have any way to authenticate at the command line, so set
authorJan Schneider <jan@horde.org>
Thu, 20 Jan 2011 18:45:34 +0000 (19:45 +0100)
committerJan Schneider <jan@horde.org>
Fri, 21 Jan 2011 13:31:32 +0000 (14:31 +0100)
'authentication' always to 'none' when in CLI mode.

58 files changed:
agora/scripts/phorum2agora.php
agora/scripts/upgrades/2007-09-23_last_message.php
agora/threads.php
agora/view.php
ansel/scripts/all_images_exif_to_tags.php
ansel/scripts/ansel.php
ansel/scripts/garbage_collection.php
ansel/scripts/recursive_import.php
ansel/scripts/remote_import.php
folks/scripts/activity.php
folks/scripts/import_letter.php
folks/scripts/mail-filter.php
folks/scripts/mail.php
folks/scripts/popularity.php
framework/Core/lib/Horde/Registry.php
framework/Rpc/test/rpc-test.php
framework/SyncML/tests/testsync.php
horde/bin/alarms
horde/bin/crond
horde/bin/run_task
horde/scripts/import_squirrelmail_file_prefs.php
horde/scripts/import_squirrelmail_sql_prefs.php
horde/scripts/upgrades/2008-04-09_horde_syncml_map.php
horde/scripts/upgrades/2008-08-29_fix_mdb2_sequences.php
horde/scripts/upgrades/convert_datatree_groups_to_sql.php
horde/scripts/upgrades/convert_datatree_perms_to_sql.php
horde/scripts/upgrades/migrate_user_categories.php
horde/scripts/upgrades/move_history_out_of_datatree.php
hylax/scripts/fax_create.php
hylax/scripts/fax_create_recv.php
hylax/scripts/fax_save_data.php
hylax/scripts/fax_save_recv_data.php
hylax/scripts/install_cups_drivers.php
imp/scripts/query-imap-cache.php
ingo/scripts/ingo-postfix-policyd
ingo/scripts/upgrades/convert_datatree_shares_to_sql.php
ingo/scripts/upgrades/convert_prefs_to_sql.php
jonah/scripts/feed_tester.php
kronolith/scripts/agenda.php
kronolith/scripts/import_icals.php
kronolith/scripts/import_squirrelmail_calendar.php
kronolith/scripts/upgrades/convert_datatree_shares_to_sql.php
kronolith/scripts/upgrades/convert_sql_shares_to_sqlng.php
kronolith/scripts/upgrades/convert_to_utc.php
nag/scripts/import_vtodos.php
nag/scripts/upgrades/convert_datatree_shares_to_sql.php
nag/scripts/upgrades/create_missing_add_histories_sql.php
turba/scripts/import_squirrelmail_file_abook.php
turba/scripts/import_squirrelmail_sql_abook.php
turba/scripts/import_vcards.php
turba/scripts/upgrades/convert_datatree_shares_to_sql.php
turba/scripts/upgrades/public_to_horde_share.php
whups/lib/tests/TestBase.php
whups/scripts/bugzilla-import.php
whups/scripts/mail-filter.php
wicked/scripts/convert_to_utf8.php
wicked/scripts/mail-filter.php
wicked/scripts/wicked.php

index 009bc91..00cc3f7 100755 (executable)
@@ -16,7 +16,7 @@
  */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('agora', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('agora', array('cli' => true));
 
 /* Open Agora database. */
 $db_agora = $db_phorum = $injector->getInstance('Horde_Core_Factory_DbPear')->create();
index e7ed9f1..acb9e54 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('agora', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('agora', array('cli' => true));
 
 /* Open the database. */
 $params = Horde::getDriverConfig('storage', 'sql');
index 449ac68..2f71887 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('agora', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('agora', array('cli' => true));
 
 /* Make sure we have a forum id. */
 list($forum_id, , $scope) = Agora::getAgoraId();
index 3ef6c56..77b13a7 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('agora', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('agora', array('cli' => true));
 
 $action_id = Horde_Util::getFormData('action_id', 'download');
 $file_id = Horde_Util::getFormData('file_id');
index 0a700c5..9db70be 100755 (executable)
@@ -10,7 +10,7 @@
 */
 
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('ansel', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ansel', array('cli' => true));
 
 /* Command line options */
 $ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), 'hu:p:f:',
index a6f4f28..ee8c2b9 100755 (executable)
@@ -10,7 +10,7 @@
 */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('ansel', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ansel', array('cli' => true));
 
 // We accept the user name on the command-line.
 $ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(),
index b93dd3e..8219125 100755 (executable)
@@ -10,7 +10,7 @@
  */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('ansel', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ansel', array('cli' => true));
 
 // Default arguments.
 $move = $verbose = false;
index 5a35c86..7a59223 100755 (executable)
@@ -10,7 +10,7 @@
 */
 
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('ansel', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ansel', array('cli' => true));
 
 // We accept the user name on the command-line.
 $ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), 'hu:p:lc:g:a:d:o:k',
index 90062ce..c86178c 100755 (executable)
@@ -13,7 +13,7 @@
 */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('ansel', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ansel', array('cli' => true));
 
 /* Command line options */
 $ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), 'hu:p:g:s:d:kr:zl',
index 5f985a4..c21cc9c 100644 (file)
@@ -17,7 +17,7 @@
 exit;
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('folks', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('folks', array('cli' => true));
 
 try {
     $db = $injector->getInstance('Horde_Core_Factory_DbPear')->create();
index c1aca26..caf230c 100644 (file)
@@ -17,7 +17,7 @@
 exit;
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('folks', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('folks', array('cli' => true));
 
 try {
     $db = $injector->getInstance('Horde_Core_Factory_DbPear')->create();
index 013c9c1..470524f 100644 (file)
@@ -38,7 +38,7 @@ EOU;
 }
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('folks', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('folks', array('cli' => true));
 
 // Read command-line parameters.
 $info = array();
index 5880fa4..9b310bb 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('folks', array('authentication' => 'none', 'cli' => true, 'no_compress' => true));
+Horde_Registry::appInit('folks', array('cli' => true, 'no_compress' => true));
 
 // We accept the user name on the command-line.
 $ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), 'h:u:p:dt:f:c:',
index 3ecd845..175c41a 100644 (file)
@@ -17,7 +17,7 @@
 exit;
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('folks', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('folks', array('cli' => true));
 
 try {
     $db = $injector->getInstance('Horde_Core_Factory_DbPear')->create();
index 23b71c0..4b3d915 100644 (file)
@@ -140,7 +140,9 @@ class Horde_Registry
      *   'none'  - Do not authenticate
      *   'throw' - Authenticate; on no auth, throw a Horde_Exception
      *   [DEFAULT] - Authenticate; on no auth redirect to login screen
-     * 'cli' - (boolean) Initialize a CLI interface.
+     * 'cli' - (boolean) Initialize a CLI interface. Setting this to true
+     *         implicits setting 'authentication' to 'none' and 'admin' and
+     *         'nocompress' to true.
      *         DEFAULT: false
      * 'nocompress' - (boolean) If set, the page will not be compressed.
      *                DEFAULT: false
@@ -199,6 +201,7 @@ class Horde_Registry
             $GLOBALS['cli'] = Horde_Cli::init();
 
             $args['nocompress'] = true;
+            $args['authentication'] = 'none';
         }
 
         // Registry.
index bb84790..3138aec 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/horde/lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
 
 $conf['server']['name'] = 'localhost';
 $conf['server']['port'] = 80;
index e779433..c3e7586 100755 (executable)
@@ -87,7 +87,7 @@ require_once 'SyncML/Backend.php';
 /* Do Horde includes if test for horde backend: */
 if ($syncml_backend_driver == 'Horde') {
     require_once dirname(__FILE__) . '/../../../lib/Application.php';
-    Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true, 'session_control' => 'none'));
+    Horde_Registry::appInit('horde', array('cli' => true, 'session_control' => 'none'));
 }
 
 if (!empty($testsetuponly)) {
index 3c81c20..50f29a9 100755 (executable)
@@ -10,6 +10,6 @@
  */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true, 'user_admin' => true));
+Horde_Registry::appInit('horde', array('cli' => true, 'user_admin' => true));
 
 $injector->getInstance('Horde_Alarm')->notify(null, true, false, array('notify', 'desktop'));
index 6fe68f2..9a1c5e0 100755 (executable)
@@ -22,7 +22,7 @@ $cron_tasks = array(
 // End Configuration
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
 
 // Get an instance of the cron scheduler.
 $daemon = Horde_Scheduler::factory('Cron');
index c94e9cc..c273066 100755 (executable)
@@ -18,7 +18,7 @@
  */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
 
 $c = new Console_Getopt();
 $argv = $c->readPHPArgv();
index c5b6af8..8396417 100755 (executable)
@@ -17,7 +17,7 @@
  */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
 
 // Read command line parameters.
 if ($argc != 2) {
index 45f546f..d623f83 100755 (executable)
@@ -17,7 +17,7 @@
 
 // Do CLI checks and environment setup first.
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
 
 // Read command line parameters.
 if ($argc != 2) {
index 86a3333..d4779a0 100755 (executable)
@@ -6,7 +6,7 @@
  */
 
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
 
 require_once 'Horde/DataTree.php';
 $datatree = DataTree::factory('sql',
index a542385..40e524f 100755 (executable)
@@ -24,7 +24,7 @@ $to_upgrade = array('ansel_shares' => 'share_id',
 
 /* Set up the CLI environment */
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
 
 $config = $GLOBALS['conf']['sql'];
 unset($config['charset']);
index e5a0c09..78e5f66 100755 (executable)
@@ -6,7 +6,7 @@
  */
 
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
 
 $g = Horde_Group::factory();
 
index af9e8c2..ac51d7e 100755 (executable)
@@ -6,7 +6,7 @@
  */
 
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
 
 $p = Horde_Perms::factory('datatree');
 
index 5674940..af404e0 100755 (executable)
@@ -9,7 +9,7 @@
  */
 
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
 
 $cManager = new Horde_Prefs_CategoryManager();
 $apps = $registry->listApps(array('hidden', 'notoolbar', 'active', 'admin'));
index b423a56..de8010d 100755 (executable)
@@ -6,7 +6,7 @@
  */
 
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('horde', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('horde', array('cli' => true));
 
 $cli->writeln($cli->yellow("Beginning migration. This may take a very long time to complete."));
 $cli->writeln();
index 50522ec..974c334 100755 (executable)
@@ -2,7 +2,7 @@
 <?php
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-$hylax = Horde_Registry::appInit('hylax', array('authentication' => 'none', 'cli' => true));
+$hylax = Horde_Registry::appInit('hylax', array('cli' => true));
 
 /* Create the fax information array. Set fax_type to 1 for outgoing. */
 $info = array('fax_type' => 1);
index 5bfe627..7d9301a 100755 (executable)
@@ -2,7 +2,7 @@
 <?php
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-$hylax = Horde_Registry::appInit('hylax', array('authentication' => 'none', 'cli' => true));
+$hylax = Horde_Registry::appInit('hylax', array('cli' => true));
 
 /* Create the fax information array. Set fax_type to 0 for incoming. */
 $info = array('fax_type' => 0,
index 816d233..a933b0d 100755 (executable)
@@ -2,7 +2,7 @@
 <?php
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-$hylax = Horde_Registry::appInit('hylax', array('authentication' => 'none', 'cli' => true));
+$hylax = Horde_Registry::appInit('hylax', array('cli' => true));
 
 /* Store the raw fax postscript data. */
 $data = $cli->readStdin();
index 601f657..7e3ad39 100755 (executable)
@@ -2,7 +2,7 @@
 <?php
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-$hylax = Horde_Registry::appInit('hylax', array('authentication' => 'none', 'cli' => true));
+$hylax = Horde_Registry::appInit('hylax', array('cli' => true));
 
 /* Get the arguments. The first argument is the filename from which the job ID
  * is obtained, in the format 'recvq/faxNNNNN.tif'. */
index e9a0eb9..ce0cf86 100755 (executable)
@@ -2,7 +2,7 @@
 <?php
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-$hylax = Horde_Registry::appInit('hylax', array('authentication' => 'none', 'cli' => true));
+$hylax = Horde_Registry::appInit('hylax', array('cli' => true));
 
 /* The CUPS backend file. */
 $hylafax_backend = file_get_contents(HYLAX_BASE . '/scripts/cups/hylafax');
index cacf1bc..19d294e 100755 (executable)
@@ -15,7 +15,7 @@
  */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('imp', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('imp', array('cli' => true));
 
 $c = new Console_Getopt();
 $argv = $c->readPHPArgv();
index 2d0d883..1a59f5b 100755 (executable)
@@ -61,7 +61,7 @@
  */
 
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('ingo', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ingo', array('cli' => true));
 
 exit('Not updated');
 
index 0a10317..6d4f558 100755 (executable)
@@ -8,7 +8,7 @@
 
 /* Set up the CLI environment */
 require_once dirname(__FILE__) . '/../../../lib/Application.php';
-Horde_Registry::appInit('ingo', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ingo', array('cli' => true));
 
 $config = $GLOBALS['conf']['sql'];
 unset($config['charset']);
index d8ce4a6..0845eb6 100755 (executable)
@@ -19,7 +19,7 @@
  */
 
 require_once dirname(__FILE__) . '/../../../lib/Application.php';
-Horde_Registry::appInit('ingo', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('ingo', array('cli' => true));
 
 /* Initialize storage backends. */
 if ($conf['storage']['driver'] != 'sql') {
index ed69679..e435994 100755 (executable)
@@ -6,7 +6,7 @@
  */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('jonah', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('jonah', array('cli' => true));
 
 if (empty($argv[1]) || !file_exists($argv[1])) {
     exit("Need a valid filename.\n");
index 6b09f10..1526049 100755 (executable)
@@ -10,7 +10,7 @@
  */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('kronolith', array('cli' => true));
 
 send_agendas();
 
index 2751ae7..8372e8e 100755 (executable)
@@ -14,7 +14,7 @@
  */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('kronolith', array('cli' => true));
 
 // Read command line parameters.
 $cli = Horde_Cli::singleton();
index a75e6a0..e16074d 100755 (executable)
@@ -16,7 +16,7 @@
 
 // Do CLI checks and environment setup first.
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true, 'user_admin' => true));
+Horde_Registry::appInit('kronolith', array('cli' => true, 'user_admin' => true));
 
 // Read command line parameters.
 if ($argc != 2) {
index 78d9380..fd30329 100755 (executable)
@@ -8,7 +8,7 @@
 
 /* Set up the CLI environment */
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('kronolith', array('cli' => true));
 
 $config = $GLOBALS['conf']['sql'];
 unset($config['charset']);
index b864657..a3e70bd 100755 (executable)
@@ -12,7 +12,7 @@
 
 /* Set up the CLI environment */
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('kronolith', array('cli' => true));
 
 require_once dirname(__FILE__) . '/../../migration/15_kronolith_upgrade_sqlng.php';
 
index 970bf2c..f7e83b3 100755 (executable)
@@ -6,7 +6,7 @@
 
 /* Set up the CLI environment. */
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('kronolith', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('kronolith', array('cli' => true));
 
 /* Prepare DB stuff. */
 PEAR::pushErrorHandling(PEAR_ERROR_CALLBACK, create_function('$e', 'echo $e->toString()."\n";exit;'));
index 9b45a5f..7a6fec7 100755 (executable)
@@ -14,7 +14,7 @@
  */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('nag', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('nag', array('cli' => true));
 
 // Read command line parameters.
 if (count($argv) != 3) {
index b66e250..84c4e19 100755 (executable)
@@ -8,7 +8,7 @@
 
 /* Set up the CLI environment */
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('nag', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('nag', array('cli' => true));
 /* Grab what we need to steal the DB config */
 require_once HORDE_BASE . '/config/conf.php';
 
index b5355df..d2e28dd 100755 (executable)
@@ -11,7 +11,7 @@
 
 // Do CLI checks and environment setup first.
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('nag', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('nag', array('cli' => true));
 
 $history = $GLOBALS['injector']->getInstance('Horde_History');
 
index 344dc6c..5d848eb 100755 (executable)
@@ -18,7 +18,7 @@
 
 // Do CLI checks and environment setup first.
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('turba', array('authentication' => 'none', 'cli' => true, 'user_admin' => true));
+Horde_Registry::appInit('turba', array('cli' => true, 'user_admin' => true));
 
 // Read command line parameters.
 if ($argc != 2) {
index 3aa47f0..bc97bf7 100755 (executable)
@@ -17,7 +17,7 @@
 
 // Do CLI checks and environment setup first.
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('turba', array('authentication' => 'none', 'cli' => true, 'user_admin' => true));
+Horde_Registry::appInit('turba', array('cli' => true, 'user_admin' => true));
 
 // Read command line parameters.
 if ($argc != 2) {
index 69590e7..a21279e 100755 (executable)
@@ -15,7 +15,7 @@
 
 // Do CLI checks and environment setup first.
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('turba', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('turba', array('cli' => true));
 
 // Read command line parameters.
 if (count($argv) != 3) {
index 05e0803..2f3c79e 100755 (executable)
@@ -9,7 +9,7 @@
 
 /* Set up the CLI environment */
 require_once dirname(__FILE__) . '/../../lib/Application.php';
-Horde_Registry::appInit('turba', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('turba', array('cli' => true));
 
 /* Grab what we need to steal the DB config */
 require_once HORDE_BASE . '/config/conf.php';
index eb518bb..e832fd9 100755 (executable)
@@ -20,7 +20,7 @@
 
 // Load Horde and Turba enviroments
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('turba', array('authentication' => 'none', 'cli' => true, 'user_admin' => true));
+Horde_Registry::appInit('turba', array('cli' => true, 'user_admin' => true));
 
 $CLI->writeln('This script will turn all entries in the SQL address book into a globally shared address book.');
 $CLI->writeln('Make sure you read the script comments and be sure you know what you are doing.');
index 0bf6028..d6e2945 100644 (file)
@@ -13,7 +13,7 @@ class Whups_TestBase Extends PHPUnit_Framework_TestCase {
     function setUp()
     {
         require_once dirname(__FILE__) . '/../Application.php';
-        Horde_Registry::appInit('whups', array('authentication' => 'none', 'cli' => true));
+        Horde_Registry::appInit('whups', array('cli' => true));
     }
 
     /**
index ff05b19..25800d8 100755 (executable)
@@ -19,7 +19,7 @@ $BUGZILLA_PRIORITIES = array('P1', 'P2', 'P3', 'P4', 'P5');
 /* END CONFIGURATION */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('whups', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('whups', array('cli' => true));
 
 function sectionHeader($text)
 {
index 777442f..e3e1dc3 100755 (executable)
@@ -57,7 +57,7 @@ function _dump($hash)
 }
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('whups', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('whups', array('cli' => true));
 
 // Set server name.
 $conf['server']['name'] = $conf['mail']['server_name'];
index c4cc698..ac2e381 100755 (executable)
@@ -13,7 +13,7 @@
  */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('wicked', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('wicked', array('cli' => true));
 
 // Create driver instance.
 if ($conf['storage']['driver'] != 'sql') {
index 40e20ab..783f63d 100755 (executable)
@@ -27,7 +27,7 @@ function headerValue($headers, $name)
 }
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('wicked', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('wicked', array('cli' => true));
 
 $dateFormat = "F j, Y";
 $keepHeaders = array('From', 'To', 'Subject', 'Cc', 'Date');
index de77677..e5c07a5 100755 (executable)
@@ -10,7 +10,7 @@
 */
 
 require_once dirname(__FILE__) . '/../lib/Application.php';
-Horde_Registry::appInit('wicked', array('authentication' => 'none', 'cli' => true));
+Horde_Registry::appInit('wicked', array('cli' => true));
 
 $debug = false;
 $out = 'screen';