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

Jan Schneider jan at horde.org
Thu Mar 18 01:51:20 PST 2004


Zitat von Greg Earle <earle at isolar.DynDNS.ORG>:

> 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!

Do they appear in the left menu?

> I am in the "admins" array in "$HORDE/config/conf.php":
>
> $conf['auth']['admins'] = array('earle');
>
> (And, yes, I'm logging in as "earle")

But your internal user name might be earle at domain.tld if you chose to use
realms in IMP's servers.php - given you login through IMP.

> *** 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.

Because it has a syntax error in the sprintf() call. Try:
Horde::logMessage('some message', ....) instead.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - Neue Wege des Lernens
http://www.tip4all.de - Deine private Tippgemeinschaft



More information about the horde mailing list