I am unable to get this module to work using the parameters that you've described in Drupal 6.2. Has anyone gotten this to work in Drupal 6?
We are using Google Apps for education, my parameters in the module are:
ourdomain.org,{imap.gmail.com:993/imap/ssl}INBOX
ourdomain.org,{pop.gmail.com:995/pop3/ssl}INBOX

Of course, I have replaced ourdomain.org with the correct domain name linked with the google apps service. Any help would be appreciated.

Comments

smandal’s picture

Replace the line (line 72)
$form['#validate']['key'] = 'imap_auth_distributed_validate';
with
$form['#validate'][$key] = 'imap_auth_distributed_validate';

Replace the line (line 154)
return variable_get('imap_auth_enabled', FALSE) && (strpos($name, '@') ||
with
return variable_get('imap_auth_enabled', FALSE) && (strpos($name, '@') &&

Depending on the IMAP server, you might get better response time by switching the lines 118 and 130 with imap_open. This has to do with whether your server requires @domainame for the username or not. I think a configuration parameter for this is useful.

Also, line 52 produces warning, I think in the admin pages. This is due to the presence of a parameter. The parameter is not utilized in the function function imap_auth_menu. To avoid the warning message, provide a default value for the parameter.
Replace the line
function imap_auth_menu($may_cache)
with
function imap_auth_menu($may_cache=FALSE)

Hope it helps.

tazus’s picture

Project: IMAP Auth » IMAP Auth - deprecated

I did all the modification as described but there is still no luck to be validated.
Apache log complainted about can't find file in sites/default/language .... not sure is relevant?

smandal’s picture

Version: 6.x-1.x-dev »

what's your configuration for IMAP_auth?

What IMAP server you are using, I use with gmail and courier IMAP and it works.
For gmail
gmail.com,{imap.gmail.com:993/imap/ssl}INBOX
For courier IMAP
domain.com,{imap_server_host:143/imap/notls}INBOX

Note:
To allow external user authentication with imap_auth, you need to set
in "Administer >> User management >> User settings":
"Public registrations:"
"Visitors can create accounts and no administrator approval is required."