Bug 72941
| Summary: | imap_open fails with pmdf V6.1 mail servers | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <kurt.brauchli> |
| Component: | php | Assignee: | Phil Copeland <copeland> |
| Status: | CLOSED DUPLICATE | QA Contact: | David Lawrence <dkl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.2 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2002-08-29 09:47:15 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Need Real Name
2002-08-29 09:47:10 UTC
See second comment in #65190 *** This bug has been marked as a duplicate of 65190 *** OK, found the bug. it is not a duplicate of 65190, however. The problem is that imap_open() uses now cram-md5 as default. If now the mail server only accepts plain authentication, php-imap and mailserver to not communicate and simply drop out. There is one workaround which is to recompile php-imap without cram-md5 support. To do this, edit the file ext/imap/php_imap.c. Comment out the line auth_link( &cram... ); then rebuild the rpm and than you can use imap_open() with plain authentication again! Does the server advertise CRAM-MD5 as an available authentication method? (To check with a POP server, telnet to the server's port (110) and issue the "CAPA" and "QUIT" commands and scan the results for "AUTH=CRAM-MD5", to check with an IMAP server, telnet to the port (143) and issue "A CAPABILITY", then "B LOGOUT".) The imap client code unconditionally uses CRAM-MD5 if the server advertises that it's capable of using CRAM-MD5 (per md5.txt from the imap-devel documentation), and disabling it for the world at large would undoubtedly leave certain users unable to connect to their servers. |