[horde] Horde snapshot of 3/4/2004 not recognizing me as "admin"

Greg Earle earle at isolar.DynDNS.ORG
Wed Mar 17 17:40:14 PST 2004


Hi,

I'm using a Horde CVS HEAD snapshot of March 4th (along with IMP,
Turba, and so forth, all from the same date/snapshots).

Everything's working great, except for one little thing.  When I
log in (I've got it set up to automatically forward/put me into IMP),
and go to click on Horde, all I get is the "Welcome, <my login>" banner
and "Home", "Layout", "Options", "Help", and "Log out" - no 
"Administration"
and "Configuration" icons/links!

I am in the "admins" array in "$HORDE/config/conf.php":

$conf['auth']['admins'] = array('earle');

(And, yes, I'm logging in as "earle")

Looking at the end of "$HORDE/framework/Horde/Horde.php", I thought
that surely the reason why I wasn't seeing "Adminstration" and
"Configuration" (which, btw, *did* work initially - after I got
everything set up, and then changed things to go straight to IMP,
then it broke) was because "Auth::isAdmin()" surely must be
returning "0"/"false".  So I tried to debug it by inserting the
following at the end of the file:

*** Horde.php.dist      Wed Mar  3 04:13:52 2004
--- Horde.php   Wed Mar 17 17:23:12 2004
***************
*** 1370,1373 ****
                               'icon_path' => 
$registry->getParam('graphics'));
!         }

           return $menu;
--- 1370,1378 ----
                               'icon_path' => 
$registry->getParam('graphics'));
!         } else {
!             $error = PEAR::raiseError(sprintf(_("Horde: in array 
['auth']['admins'] == FALSE"), $hook, $app));
!             Horde::logMessage($error, __FILE__, __LINE__, 
PEAR_LOG_DEBUG);

+             return $error;
+       }
+
           return $menu;

Well, this isn't working - the exception isn't being raised.

I don't know much about PHP (but obviously, it's not hard to read, 
given its
C-like syntax and structure), and am having an awfully hard time 
debugging this
problem.  Any pointers to methods for debugging PHP problems would be 
greatly
appreciated.  (Getting back blank HTML pages in many cases isn't my 
idea of
a good way to figure out that you've got a problem somewhere  :-) )

Anyone have any suggestions?  Or how to do debug "printf"-esque 
statements
so I can see why, apparently, I am not being recognized as an "admin" 
user?
Or should I update to the very latest CVS HEAD snapshots?

(I need to change something in a configuration of another module, so I'm
trying to use the normal Configuration stuff to make the change.)

Thanks in advance,

	- Greg




More information about the horde mailing list