Koozali.org: home of the SME Server

Horde Admin Login

Offline dbuechel

  • ****
  • 99
  • +0/-0
Horde Admin Login
« on: May 12, 2016, 12:27:33 PM »
Hi all!

I have a great problem! - I can not login to the Horde Admin!

I have do following:

Add the admin user as an administrator for Horde:

config setprop horde Administration enabled
signal-event email-update

in \home\httpd\html\horde\config\conf.php is:

$conf['auth']['admins'] = array('admin@domain.local', );


When I login over:
https://192.168.0.93/horde/admin/config/index.php

with admin and password - comes this:

Ein schwerer Fehler ist aufgetreten:
Zugriff verweigert.
Details wurden für den Administrator mitgeloggt.

In English:
A fatal error has occurred
Permission denied.
Details have been logged for the administrator.


and in putty:
Message from syslogd@domain at May 12 12:26:08 ...
 HORDE: [horde] Zugriff verweigert. [pid 2727 on line 373 of "/usr/share/pear/Horde/Registry.php"]

Why?

Can someone help me?

Best Regards!



EDIT: I change:
$conf['auth']['admins'] = array('admin');

^^
same problem!
« Last Edit: May 12, 2016, 12:57:36 PM by dbuechel »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Horde Admin Login
« Reply #1 on: May 12, 2016, 12:48:30 PM »
first of all you'd translate the error messages

if you disable/revert the edit you did, does it work?


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Horde Admin Login
« Reply #2 on: May 12, 2016, 12:49:23 PM »
I guess it should be

Code: [Select]
$conf['auth']['admins'] = array('admin', )

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Horde Admin Login
« Reply #3 on: May 12, 2016, 12:58:04 PM »
I change my start topic ^^

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Horde Admin Login
« Reply #4 on: May 12, 2016, 12:58:57 PM »
please, DON'T, thank you

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Horde Admin Login
« Reply #5 on: May 12, 2016, 01:22:22 PM »
please, DON'T, thank you

What are you trying to say?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Horde Admin Login
« Reply #6 on: May 12, 2016, 01:25:18 PM »
I'm asking you not to edit your previous posts editing/adding info

it makes things unclear and difficult to read/follow for future readers (my answers are with no sense after you edited your first post)

thank you

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Horde Admin Login
« Reply #7 on: May 12, 2016, 01:45:38 PM »
OK  8-)

Question: Have you a solution for my problem?

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Horde Admin Login
« Reply #8 on: May 12, 2016, 01:57:04 PM »
You should be able to use this link to enable this option...

https://wiki.contribs.org/SME_Server:Documentation:Technical_Manual:Chapter4#Add_the_admin_user_as_an_administrator_for_Horde

There is nothing else you are required to modify.  Then go to https://server-ip/webmail and log in as "admin" and the password used when installed and setup SME Server.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Horde Admin Login
« Reply #9 on: May 12, 2016, 02:00:38 PM »
You should be able to use this link to enable this option...

https://wiki.contribs.org/SME_Server:Documentation:Technical_Manual:Chapter4#Add_the_admin_user_as_an_administrator_for_Horde

There is nothing else you are required to modify.  Then go to https://server-ip/webmail and log in as "admin" and the password used when installed and setup SME Server.

You read my first post?

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Horde Admin Login
« Reply #10 on: May 12, 2016, 02:09:01 PM »
You read my first post?

I did, now re-read my post and let us know the result. I.e. log in using the link I provided.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Horde Admin Login
« Reply #11 on: May 12, 2016, 02:15:57 PM »
I read you're trying to login on

Code: [Select]
https://192.168.0.93/horde/admin/config/index.php

not to
Code: [Select]
https://192.168.0.93/webmail

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Horde Admin Login
« Reply #12 on: May 12, 2016, 02:17:49 PM »
I make this:
config setprop horde Administration enabled
signal-event email-update

and then:

My Webrowser change this https://192.168.0.93/webmail to https://192.168.0.93/horde/login.php

same problem  :shock:





Offline byte

  • *
  • 2,183
  • +2/-0
Re: Horde Admin Login
« Reply #13 on: May 12, 2016, 02:17:59 PM »
in \home\httpd\html\horde\config\conf.php is:

$conf['auth']['admins'] = array('admin@domain.local', );

Can you confirm then if you have edited this file?

If so, which I guess you either have a typo or something there is a rouge comma...

Incorrect code
Code: [Select]
$conf['auth']['admins'] = array('admin@domain.local', );
Correct code
Code: [Select]
$conf['auth']['admins'] = array('admin@domain.local');
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Horde Admin Login
« Reply #14 on: May 12, 2016, 02:58:14 PM »
@byte - the same problem!

OK - I find something:

I install a complete new sme 9.0

only admin user - I make this:
config setprop horde Administration enabled
signal-event email-update

and then can I use this:
https://192.168.0.93/webmail

perfect - adminstration menu is on!

Then - I upgrade to horde 5.2 over this:
cd /root
wget http://mirror.contribs.org/contribs/jbennett/horde/horde52-rpms.zip
unzip horde52-rpms.zip
cd horde52
sh Install-horde52.sh
signal-event post-upgrade
signal-event reboot

see: https://forums.contribs.org/index.php/topic,50969.msg257624.html#msg257624


horde 5.2 is installed and works !

BUT - No admin function -

https://192.168.0.93/horde/admin/config/index.php
In English:
A fatal error has occurred
Permission denied.
Details have been logged for the administrator.




Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Horde Admin Login
« Reply #15 on: May 12, 2016, 03:30:42 PM »
hmmm....

in horde is my User Name - admin@0.93

??


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Horde Admin Login
« Reply #16 on: May 12, 2016, 03:37:58 PM »
well, you did not tell us you were playing with Horde 5.2

so:
- this post is OT here since horde 5.2 is not part of SME cd
- horde 5.2 is unsupported

I move it to Contribs section

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Horde Admin Login
« Reply #17 on: May 12, 2016, 03:57:46 PM »
I think, this is the problem: @0.93

But where can I change this?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Horde Admin Login
« Reply #18 on: May 12, 2016, 04:00:27 PM »
I sincerely don't know.. as said, Horde 5.2 is unsupported so, basically, you're on your own..

hope mrjhb3 will read this one

anyway, in https://forums.contribs.org/index.php/topic,50969.msg257624.html#msg257624, you can read "for testing purpose only"

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Horde Admin Login
« Reply #19 on: May 12, 2016, 04:06:25 PM »
Yes - I know.

But I thought in a forum someone can help me.

;)

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Horde Admin Login
« Reply #20 on: May 13, 2016, 08:26:12 AM »
I found the solution!

$conf['auth']['admins'] = array('admin@domain.local','admin@0.93');

^^

admin@0.93 - and everything works!

 8-)

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: Horde Admin Login
« Reply #21 on: May 14, 2016, 02:20:06 AM »

That's good.  Nothing I have done tries to accommodate a user logging in to webmail via an IP address.

Just curious, what is the output of this command:more /home/httpd/html/horde/imp/config/backends.local.php
I'm going to guess that  $servers and maildomain says domain.local since that is what your first entry shows in the conf-auth-admins array.
If you could have logged into webmail using the domain.local fqdn, then I suspect this would have worked for you with no issues.

I don't know if there is a real fix for logging in via IP address and wanting to show the admin options.  If there is, the code for that is above me.

I also use an fqdn and it just works for me.

If you try to switch to test, then your admin preferences will be reset because nothing will have been saved for admin@domain.local, only for admin@0.93.

Sorry for coming to the party late, I got your email, then tried to respond by my smarthost is/was being blacklisted by one of the rbl's you are using, then I tried to respond directly via my gmail account, but I never got a response whether you received that or not.  Clicking on the horde icon was my next suggestion to see what horde was showing as your user credentials.

John
......

Offline dbuechel

  • ****
  • 99
  • +0/-0
Re: Horde Admin Login
« Reply #22 on: May 19, 2016, 08:38:16 AM »
Sorry for the late answer - I had vacation  :-D

Code: [Select]
/*
#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
*/

//100Overrides
$servers['imap']['disabled'] = true;

//120IMAPServers
$servers['domain.local'] = array(
    'disabled' => false,
    'name' => 'IMAP Server',
    'hostspec' => 'localhost',
    'hordeauth' => true,
    'protocol' => 'imap',
    'port' => '143',
    'secure' => 'notls',
    'maildomain' => 'domain.local',
    'smtphost' => 'localhost',
    'smtpport' => '25',
    'cache' => false,
);


About Horde/webmail

I  can only login with the user name "admin" - not admin@domain.local

Horde version is 5.2.10


Quote
Sorry for coming to the party late, I got your email, then tried to respond by my smarthost is/was being blacklisted by one of the rbl's you are using, then I tried to respond directly via my gmail account, but I never got a response whether you received that or not. 

Interesting!

I answered directly to your GMail account! 13.05.2016 08:15

^^