Re: Warning: imap_open(): Couldn't open stream error
- From: "ZeldorBlat" <zeldorblat@xxxxxxxxx>
- Date: 20 Jan 2006 09:30:18 -0800
arkis wrote:
> Thanks a lot, it worked but I still have a problem with imap_open()
>
> Warning: imap_open(): Couldn't open stream
> {localhost:143/novalidate-cert} in /var/www/html/webmail/index.php on
> line 168
> can't connect: Can not authenticate to IMAP server: Login failed.
>
> My maillog :
>
> Jan 20 11:55:04 server authdaemond: received auth request,
> service=imap, authtype=cram-md5
> Jan 20 11:55:04 server authdaemond: authmysql: trying this module
> Jan 20 11:55:04 server authdaemond: cram: challenge=[blablabla..].==,
> response=[blablabla...]
> Jan 20 11:55:04 server authdaemond: cram: decoded challenge/response,
> username '[username]'
> Jan 20 11:55:04 server authdaemond: SQL query: SELECT id, crypt, "",
> uid, gid, home, maildir, quota, name, "" FROM passwd WHERE id =
> "[username]"
> Jan 20 11:55:04 server authdaemond: authmysql: REJECT - try next module
> Jan 20 11:55:04 server authdaemond: FAIL, all modules rejected
> Jan 20 11:55:04 server imapd: LOGIN FAILED, method=CRAM-MD5,
> ip=[::ffff:127.0.0.1]
>
>
>
> When I connect with Squirrelmail (doesn't use imap_open), it works and
> the maillog is :
>
> Jan 20 12:00:39 server authdaemond: received auth request,
> service=imap, authtype=login
> Jan 20 12:00:39 server authdaemond: authmysql: trying this module
> Jan 20 12:00:39 server authdaemond: SQL query: SELECT id, crypt, "",
> uid, gid, home, maildir, quota, name, "" FROM passwd WHERE id =
> "[username]"
> Jan 20 12:00:39 server authdaemond: password matches successfully
>
>
> The only difference seems to be authtype. Is there a problem with
> cram-md5 ?
> how should I change my setup to connect (change the authtype to login
> ?!?!) ?
>
> Thanks,
>
> Cedric.
Are you sure the only difference is authtype? Looks like the
Squirrelmail version isn't using SSL whereas yours is.
.
- Follow-Ups:
- References:
- Warning: imap_open(): Couldn't open stream error
- From: cedric
- Re: Warning: imap_open(): Couldn't open stream error
- From: ZeldorBlat
- Re: Warning: imap_open(): Couldn't open stream error
- From: arkis
- Warning: imap_open(): Couldn't open stream error
- Prev by Date: Frames and Variables
- Next by Date: Re: Substr Error
- Previous by thread: Re: Warning: imap_open(): Couldn't open stream error
- Next by thread: Re: Warning: imap_open(): Couldn't open stream error
- Index(es):