[imp] Logging, administration and debugging for the utterly clueless

Rodolfo Segleau segleaur@mechanus.org
Mon, 16 Sep 2002 08:40:28 -0500


> ----- Message from joost.decock@astrid.be ---------
>     Date: Mon, 16 Sep 2002 15:06:58 +0200
>     From: Joost De Cock <joost.decock@astrid.be>
> Reply-To: Joost De Cock <joost.decock@astrid.be>
>  Subject: [imp] Logging, administration and debugging for the utterly clueless
>       To: IMP <imp@lists.horde.org>
> 
> Hi all,
> 
> $pth="/path_to_horde";  --> makes it easier for me to explain
> 
> I have a problem, and it started out as this.
> I added myself to the admins array in /$pth/config/horde.php like this:
> 
> $conf['auth']['admins'] = array('jdc');
> 
> Figuring it would be good for my ego ;)
> Problem is, I can't see the icon for administration anywhere.
> I found a thread in the mailinglist, suggesting to use user@domain, instead
> of user, so I changed the line above to:
> 
> $conf['auth']['admins'] = array('jdc@astrid.be');
> and I even tried
> $conf['auth']['admins'] = array('jdc@webmail.astrid.be');
> 

You only need the domain name appended to your username if you are using realms 
(check your imp/config/servers.php). If not, the username should be enough. 


> But nothing happened.
> This raises my first question, when I change horde.php, are those changes
> active when I do a logout-login?
> I do think they are, so I continue assuming they do.
> Figuring my username for horde mustn't be the imap username but something
> different (I used tcpdump and conencted over http to verify that the IMAP
> server gets only 'jdc' and it does) I hoped I would be able to get it logged
> somewhere.

What authentication method are you using? If you're using IMAP and it's an OS 
level created user, then it should be that username. If you're using something 
else, well, obviously check there first. The username has to match the 
authentication mechanism's username (IIRC). 

 
> $conf['log']['priority'] = LOG_DEBUG;
> 

I would really, really, *really* suggest not using that unless you want lots of 
ugly debug info (and a VERY large /tmp folder, if you have any amount of 
concurrent users). 


> and still I only see logins and logouts like:
> 
> Sep 16 14:27:09 HORDE [notice] [imp] Login success for jdc [111.222.333.444]
> to {444.333.222.111:143} [on line 64 of
> "/var/www/html/horde/imp/redirect.php"]
> 
> (the ip addresses are changed)
> 

ummmmm.... this might sound idiotic, but do you per chance have also a conf.php 
in that directory?


Cheers, 

Rodolfo

--
The greatest and noblest pleasure which men can have in this world is to 
discover new truths; the next is to shake off old prejudices. - Frederick the 
Great