bugphpGroupWare - Bugs: bug #7926, Login Email authentication problem...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #7926: Login Email authentication problem in 0.9.16RC3

Submitted by:  Miguel <konsultex>
Submitted on:  Fri 27 Feb 2004 12:34:28 PM UTC  
 
Item Group: 0.9.16RC3Category: API - phpGroupware API
Severity: 3 - NormalPriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: Dave Hall <skwashd>Open/Closed: Closed
Component Version: TGZOperating System: GNU/Linux - RedHat/Fedora
Reproducibility: Every TimePlanned Release: None
Fixed Release: 

Sun 05 Sep 2004 11:15:48 PM UTC, comment #4:

Will apply this patch shortly ... didn't know there was a patch. Please post patches on the patch manager with a reference to a bug report.

Dave Hall <skwashd>
Project AdministratorIn charge of this item.
Tue 09 Mar 2004 03:25:53 AM UTC, comment #3:

Great! This was solved by the patch to class.auth_mail.inc.php as per the other post.

Miguel <konsultex>
Sat 06 Mar 2004 01:12:32 AM UTC, comment #2:

This patch solved the issue for my rh8.0 installation with courier IMAP

--- class.auth_mail.inc.php.orig 2004-03-05 19:09:36.000000000 -0600
+++ class.auth_mail.inc.php 2004-03-05 19:07:36.000000000 -0600
@@ -68,7 +68,7 @@
else
{
/* assume imap */
- $mailauth = imap_open('{'.$GLOBALS['phpgw_info']['server']['mail_server']
+ $mailauth = imap_open('{'.$GLOBALS['phpgw_info']['server']['mail_server'].'/imap/notls'
.':'.$GLOBALS['phpgw_info']['server']['mail_port'].'}INBOX', $username , $passwd);
}

Jim Richardson <treyvan>
Mon 01 Mar 2004 04:14:53 PM UTC, comment #1:

RH changed the IMAP libs, it now forces TLS when you don't ask for it. The code needs edited to force the /notls request (which is against the standards I might add). There is a recent email to the users list that covers what's needed.

Chris Weiss <cw>
Project Administrator
Fri 27 Feb 2004 12:34:28 PM UTC, original submission:

I'm trying to set up email authentication using 0.9.16RC3 of phpGroupware (On Fedora 1
with phpGroupware on MySql). I got the system set up correctly for SQL authentication,
created groups, users and set up the administration email parameters using IMAP (and
POP3) with ip instead of server names for the imap and smpt server. I then tested that
I can access the email application (site configuration) without setting special
preferences for the admin user. I sent out a test email without any problems. I did
not configure email further because my objective is not to use email inside
phpGrpupware but to authenticate users so they have just one password for email, samba
and groupware. I access phpGroupware using SSL.

I get a warning at the top of the page when I access the email app, like this:

Warning: imap_open(): Couldn't open stream {10.2.252.2:143}INBOX in
/opt/phpgroupware/email/inc/class.mail_dcom_imap.inc.php on line 214

but it seems to work. This happens with IMAP/Courier/Standard login (and any IMAP
combination). If I change it to POP-3/Courier/Standard the warning goes away the first
time I access the email app, but makes no difference to my main problem of
authenticating users. If I log in again with POP-3 configured and use the email app, I
get this error and it does not work at all:

Warning: imap_open(): Couldn't open stream {10.2.252.2:110/pop3}INBOX in
/opt/phpgroupware/email/inc/class.mail_dcom_pop3.inc.php on line 184

source: email class.mail_msg_base.inc.php

called from: /phpgroupware/index.php, mail_msg: ensure_stream_and_folder(),
called_from: from mail_msg_base: loginerr_tryagain_buggy_cert FOR
/phpgroupware/index.php, msg_bootstrap: ensure_mail_msg_exists(), called_by:
email.boindex.index_data LINE 353

imap_last_error: [Certificate failure for 10.2.252.2: self signed certificate:
/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/emailAddress=root@localhost.localdomain]
tried RH bug recovery?: [1]

When I switch the preferences to authenticate with Mail (having IMAP defined) I can't
log in. By looking at the logs I get the feeling that phpGroupware is not sending the
mail server (the same physical server) the user name. This is what the
/var/log/maillog shows (having IMAP in the email administration setup):

Feb 26 23:32:44 TBNET imapd[24585]: imap service init from 10.2.252.2
Feb 26 23:32:44 TBNET imapd[24585]: Authenticated user=admin host=tbnet [10.2.252.2]
Feb 26 23:32:53 TBNET imapd[24585]: Logout user=admin host=tbnet [10.2.252.2]
Feb 26 23:34:21 TBNET imapd[24586]: imap service init from 10.2.252.2
Feb 26 23:34:21 TBNET imapd[24586]: Command stream end of file, while reading line
user=??? host=UNKNOWN
Feb 26 23:34:31 TBNET imapd[24587]: imap service init from 10.2.252.2
Feb 26 23:34:32 TBNET imapd[24587]: Command stream end of file, while reading line
user=??? host=UNKNOWN

The first lines show access from within the email application. The last lines show
where I tried to log in twice (in case I made a mistake with the password).

This happens when I have POP-3 set up:

Feb 27 00:27:40 TBNET ipop3d[24991]: pop3 service init from 10.2.252.2
Feb 27 00:27:40 TBNET ipop3d[24991]: Command stream end of file while reading line
user=??? host=UNKNOWN
Feb 27 00:27:51 TBNET ipop3d[24992]: pop3 service init from 10.2.252.2
Feb 27 00:27:51 TBNET ipop3d[24992]: Command stream end of file while reading line
user=??? host=UNKNOWN

I checked with telnet to port 110 that the user is able to log in.

I'm curious about the user=??? message.

Any ideas of what could be wrong? Are the IMAP errors (when having POP-3 defined)
somehow related to the fact that I use SSL?

Miguel

P.S. I'm not new to email login authentication. I had this working with version 0.9.14.00x (I believe x was 5) on Red Hat 7.3

Miguel <konsultex>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 05 Sep 2004 11:16:42 PM UTCskwashdReassign ItemFrom group phpGroupWare, bugs tracker=>To group phpGroupWare, patch tracker
Sun 05 Sep 2004 11:16:41 PM UTCskwashdReassign ItemFrom group phpGroupWare, bugs tracker=>To group phpGroupWare, patch tracker
Sun 05 Sep 2004 11:15:47 PM UTCskwashdCategoryemail=>API - phpGroupware API
  Assigned toNone=>skwashd
Sat 06 Mar 2004 12:47:51 AM UTCtreyvanCarbon-Copy-=>Added treyvan --AT-- wtfo-guru --DOT-- com

Back to the top


Powered by Savane 3.1-cleanup