Re: [imp] Problems installing imp

2013-09-18 Thread Michael M Slusarz

Quoting cyx :


At the moment I try to install a new horde-server as backup.

Installation went well, but now when I open imp or kronolith, I see "error
communicating with the server" error box.

Backends.local.php is the same as the one working on our prime horde server.

In http-error.log I see: [error] [client x.x.x.x] File does not exist:
/usr/local/www/apache22/data/horde/services/ajax.php/horde/topbarUpdate,
referer: https://webmailneu.htlwrn.ac.at/imp/dynamic.php?page=mailbox


Most likely, your HTTP server is not correctly parsing PATH_INFO information.

michael

___
Michael Slusarz [slus...@horde.org]

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


[imp] Base account folders in 6.2

2013-09-18 Thread Jan Schneider

Hi,

is it intended that the folders of the base account are not displayed  
on the top level in the left folder list, but below an "Inbox" entry?


Instead of:

Inbox
Drafts
--
Some Folder
Other Folder
Remote Accounts
+ Account 1
Virtual Folders
+ Virtual Inbox

I now have:

Inbox
Drafts
--
Inbox
+ Some Folder
+ Other Folder
Remote Accounts
+ Account 1
Virtual Folders
+ Virtual Inbox

--
Jan Schneider
The Horde Project
http://www.horde.org/

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


Re: [imp] Connecting from portal

2013-09-18 Thread Maxime Pelletier
Michael J Rubinsky  horde.org> writes:

> >
> > Hi Jan,
> >
> > Thanks a lot for taking the time to answer my question.
> >
> > However, I would appreciate if you could give me a little bit more details
> > about that, or point me to some documentation.
> >
> > I couldn't locate the validateAuth() method. I'm not even sure if this is
> > supposed to be at Horde or IMP level. We configured our server so that IMP
> > provides authentication.
> 
> It's a method exposed by the authentication object. See Horde_Auth::
> 
> > Also, what is the right way to validate that a user is already logged in?
> 
> Horde_Auth::validateAuth()
> 
> > And what is the right way to log out a user?
> 
> Horde_Registry::clearAuth()
> 
> Jan had written a very comprehensive post regarding how authentication  
> works in Horde (Hint: it's fairly complicated). IIRC, it was written  
> for Horde 4, but the concepts are still mostly valid in Horde 5. See  
> http://janschneider.de/news/5/342

Hi Michael,

Thanks for your reply. I didn't remember those articles written by Jan. It
helped me understand better the login process. 

However, I wanted to take a different approach which is a lot simpler. I
added this preauthentication hook for Horde:
=
public function preauthenticate($userId, $credentials)
{
if ( $GLOBALS['registry']->isAuthenticated() &&
$GLOBALS['registry']->getAuth() != $userId ) {
  return false;
}
return true;
}
=

So if someone is already logged in, and that the userId of the current
connection is not the same as the one already logged in, then it fails.

It somehow works because I get this error message in the logs when I try to
login to Horde with a user different from the one already connected:
=
HORDE: [horde] FAILED LOGIN for secondUser [11.21.111.11] to Horde [pid
21316 on line 231 of "/var/www/html/horde/login.php"]
=

Unfortunately, it doesn't log out the user currently logged in so Horde is
opened with the account of the first user.

In short, shouldn't we expect that if preauthenticate() fails, then any
session opened would be cleared out?

I hope I'm clear :)

Thanks in advance for you help.

Maxime

-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


Re: [imp] Connecting from portal

2013-09-18 Thread Michael J Rubinsky


Quoting Maxime Pelletier :


Michael J Rubinsky  horde.org> writes:


>
> Hi Jan,
>
> Thanks a lot for taking the time to answer my question.
>
> However, I would appreciate if you could give me a little bit more details
> about that, or point me to some documentation.
>
> I couldn't locate the validateAuth() method. I'm not even sure if this is
> supposed to be at Horde or IMP level. We configured our server so that IMP
> provides authentication.

It's a method exposed by the authentication object. See Horde_Auth::

> Also, what is the right way to validate that a user is already logged in?

Horde_Auth::validateAuth()

> And what is the right way to log out a user?

Horde_Registry::clearAuth()

Jan had written a very comprehensive post regarding how authentication
works in Horde (Hint: it's fairly complicated). IIRC, it was written
for Horde 4, but the concepts are still mostly valid in Horde 5. See
http://janschneider.de/news/5/342


Hi Michael,

Thanks for your reply. I didn't remember those articles written by Jan. It
helped me understand better the login process.

However, I wanted to take a different approach which is a lot simpler. I
added this preauthentication hook for Horde:
=
public function preauthenticate($userId, $credentials)
{
if ( $GLOBALS['registry']->isAuthenticated() &&
$GLOBALS['registry']->getAuth() != $userId ) {
  return false;
}
return true;
}
=

So if someone is already logged in, and that the userId of the current
connection is not the same as the one already logged in, then it fails.

It somehow works because I get this error message in the logs when I try to
login to Horde with a user different from the one already connected:
=
HORDE: [horde] FAILED LOGIN for secondUser [11.21.111.11] to Horde [pid
21316 on line 231 of "/var/www/html/horde/login.php"]
=

Unfortunately, it doesn't log out the user currently logged in so Horde is
opened with the account of the first user.

In short, shouldn't we expect that if preauthenticate() fails, then any
session opened would be cleared out?


No, because it's a *pre* authenticate hook, which is designed to only  
alter the login credentials before authentication occurs. It's not  
designed to log out an already authenticated session. This is exactly  
what the above mentioned validateAuth method is for - to validate that  
the current session is still valid using whatever method makes sense  
for the authentication backend.


If you want to continue with this strategy instead of the more correct  
way of writing an authentication driver for your setup, you could try  
to manually clear the session using Horde_Registry::clearAuth() from  
within the hook. No idea off hand if this will work from the hook, or  
have unintended side effects though.



--
mike

The Horde Project (www.horde.org)
mrubi...@horde.org


smime.p7s
Description: S/MIME Signature
-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org

Re: [imp] Connecting from portal

2013-09-18 Thread Michael M Slusarz

Quoting Michael J Rubinsky :


Quoting Maxime Pelletier :


Michael J Rubinsky  horde.org> writes:



Hi Jan,

Thanks a lot for taking the time to answer my question.

However, I would appreciate if you could give me a little bit more details
about that, or point me to some documentation.

I couldn't locate the validateAuth() method. I'm not even sure if this is
supposed to be at Horde or IMP level. We configured our server so that IMP
provides authentication.


It's a method exposed by the authentication object. See Horde_Auth::


Also, what is the right way to validate that a user is already logged in?


Horde_Auth::validateAuth()


And what is the right way to log out a user?


Horde_Registry::clearAuth()

Jan had written a very comprehensive post regarding how authentication
works in Horde (Hint: it's fairly complicated). IIRC, it was written
for Horde 4, but the concepts are still mostly valid in Horde 5. See
http://janschneider.de/news/5/342


Hi Michael,

Thanks for your reply. I didn't remember those articles written by Jan. It
helped me understand better the login process.

However, I wanted to take a different approach which is a lot simpler. I
added this preauthentication hook for Horde:
=
   public function preauthenticate($userId, $credentials)
   {
   if ( $GLOBALS['registry']->isAuthenticated() &&
$GLOBALS['registry']->getAuth() != $userId ) {
 return false;
   }
   return true;
   }
=

So if someone is already logged in, and that the userId of the current
connection is not the same as the one already logged in, then it fails.

It somehow works because I get this error message in the logs when I try to
login to Horde with a user different from the one already connected:
=
HORDE: [horde] FAILED LOGIN for secondUser [11.21.111.11] to Horde [pid
21316 on line 231 of "/var/www/html/horde/login.php"]
=

Unfortunately, it doesn't log out the user currently logged in so Horde is
opened with the account of the first user.

In short, shouldn't we expect that if preauthenticate() fails, then any
session opened would be cleared out?


No, because it's a *pre* authenticate hook, which is designed to  
only alter the login credentials before authentication occurs. It's  
not designed to log out an already authenticated session. This is  
exactly what the above mentioned validateAuth method is for - to  
validate that the current session is still valid using whatever  
method makes sense for the authentication backend.


If you want to continue with this strategy instead of the more  
correct way of writing an authentication driver for your setup, you  
could try to manually clear the session using  
Horde_Registry::clearAuth() from within the hook.


You *really* need to be implementing a custom authentication driver  
for this setup.


michael

___
Michael Slusarz [slus...@horde.org]

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


Re: [imp] Base account folders in 6.2

2013-09-18 Thread Michael M Slusarz

Quoting Jan Schneider :


Hi,

is it intended that the folders of the base account are not  
displayed on the top level in the left folder list, but below an  
"Inbox" entry?


Instead of:

Inbox
Drafts
--
Some Folder
Other Folder
Remote Accounts
+ Account 1
Virtual Folders
+ Virtual Inbox

I now have:

Inbox
Drafts
--
Inbox
+ Some Folder
+ Other Folder
Remote Accounts
+ Account 1
Virtual Folders
+ Virtual Inbox


I don't understand.  You are seeing the INBOX twice?  It points to the  
same mailbox?


Needless to say, I don't see this.

michael

___
Michael Slusarz [slus...@horde.org]

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


Re: [imp] Base account folders in 6.2

2013-09-18 Thread Jan Schneider


Zitat von Michael M Slusarz :


Quoting Jan Schneider :


Hi,

is it intended that the folders of the base account are not  
displayed on the top level in the left folder list, but below an  
"Inbox" entry?


Instead of:

Inbox
Drafts
--
Some Folder
Other Folder
Remote Accounts
+ Account 1
Virtual Folders
+ Virtual Inbox

I now have:

Inbox
Drafts
--
Inbox
+ Some Folder
+ Other Folder
Remote Accounts
+ Account 1
Virtual Folders
+ Virtual Inbox


I don't understand.  You are seeing the INBOX twice?  It points to  
the same mailbox?


Yes twice, but in the lower section only as a container.


Needless to say, I don't see this.


Well, at least it's not intended then. ;-) Remember that I use Cyrus,  
where the personal namespace is INBOX., so it's probably a matter of  
not removing the namespace prefix at some place in the new code.

--
Jan Schneider
The Horde Project
http://www.horde.org/

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


Re: [imp] Unable to upgrade IMP 6.0.1 -> 6.1.4

2013-09-18 Thread Rob Merigold
Michael,

 

I don't use that module and cleared /tmp where those are stored with the
same message.  Any other thoughts please?

 

Regards,

 

Rob

 

Date: Tue, 17 Sep 2013 20:45:44 -0600

From: Michael M Slusarz 

To: imp@lists.horde.org

Subject: Re: [imp] Unable to upgrade IMP 6.0.1 -> 6.1.4

Message-ID:

 
<20130917204544.horde.zdmutnw08al1qrehzqlw...@bigworm.curecanti.org>

Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes

 

Quoting Rob Merigold :

 

> I've been trying to upgrade my working imp 6.0.1 installation to 

> 6.1.4.  I keep getting an error on a white screen by itself:

> 

> 

> 

> Error: Class IMP_Factory_Imap does not exist

 

Most likely your Horde_Autoloader cache hasn't been cleared correctly.  

  Search the archives on how to do this.

 

michael

 

___

Michael Slusarz [slus...@horde.org]

 

 

Regards,

 

Rob Merigold | Expert Services

InfoGlobe Communications | Tel: 905 963-8900 x-200 |
 rmerig...@infoglobe.net

 

-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


Re: [imp] Base account folders in 6.2

2013-09-18 Thread Michael M Slusarz

Quoting Jan Schneider :


Zitat von Michael M Slusarz :


Quoting Jan Schneider :


Hi,

is it intended that the folders of the base account are not  
displayed on the top level in the left folder list, but below an  
"Inbox" entry?


Instead of:

Inbox
Drafts
--
Some Folder
Other Folder
Remote Accounts
+ Account 1
Virtual Folders
+ Virtual Inbox

I now have:

Inbox
Drafts
--
Inbox
+ Some Folder
+ Other Folder
Remote Accounts
+ Account 1
Virtual Folders
+ Virtual Inbox


I don't understand.  You are seeing the INBOX twice?  It points to  
the same mailbox?


Yes twice, but in the lower section only as a container.


Fixed.  Think I still need to work on Shared/Public mailbox display,  
but I will deal with this later.


michael

___
Michael Slusarz [slus...@horde.org]

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


[imp] Horizontal / Vertical View.

2013-09-18 Thread ANANT S ATHAVALE

Dear List,

Some of our users are prefereing Vertical View and some are prefering
Horizontal View.  So, setting any thing default is a problem and such
option does not exist also. 

But, at least will it be possible to preserve the earlier used mode?
--
  Regards
   Anant
--
Confidentiality Notice: This e-mail message, including any attachments, is for
the sole use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
--

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org

[imp] Problems installing imp

2013-09-18 Thread cyx


> -Ursprüngliche Nachricht-
> Von: Mag. Werner Cyrmon [mailto:w.cyr...@htlwrn.ac.at]
> Gesendet: Donnerstag, 19. September 2013 07:51
> An: 'imp@lists.horde.org'
> Betreff: ]Problems installing imp
>
> > Date: Wed, 18 Sep 2013 01:02:44 -0600
> > From: Michael M Slusarz 
> > To: imp@lists.horde.org
> > Subject: Re: [imp] Problems installing imp
> > Message-ID:
> > <20130918010244.Horde.lXiezADeVYJw-
> > mc7xzbu...@bigworm.curecanti.org>
> > Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes
> >
> > Quoting cyx :
> >
> > > At the moment I try to install a new horde-server as backup.
> > >
> > > Installation went well, but now when I open imp or kronolith, I see
> > > "error communicating with the server" error box.
> > >
> > > Backends.local.php is the same as the one working on our prime horde
> > server.
> > >
> > > In http-error.log I see: [error] [client x.x.x.x] File does not exist:
> > >
> >
> /usr/local/www/apache22/data/horde/services/ajax.php/horde/topbarUpdat
> > > e,
> > > referer:
> > > https://webmailneu.htlwrn.ac.at/imp/dynamic.php?page=mailbox
> >
> > Most likely, your HTTP server is not correctly parsing PATH_INFO
information.
> >
> > michael
Thanks Michael,
Hhmm - strange, it is a 0815 apache22 configuration (and the same as on the
 other server). Tried without mod_rewrite, no success.
 Any other locations, where I can fix Path_INFO problems?
 BTW: turba, nag, mnemo  all working fine. Only imp and Kronloth show
this
 symptom
Regards Werner


-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org