UoG Login Issues
*** Latest Update: The authentication seems to be working again from legacy.mail.uoguelph.ca. Thank you to Wyatt and CCS for clearing up that bit of confusion, and thank you to Martin for endlessly slaving away at this. You may log in normally, without taking extra steps. ***
Thanks for your patience,
SOCIS System Staff
*** Old Message Follows, in case of future breaks.***
You should be able to get a one time login using "Forgot Your Password", and you can then set a local password that will work regardless of the IMAP authentication. For anyone needing a new account before this is fixed, feel free to email admin@socis.ca
As some of you may have noticed, there is currently a problem with the login which I believe is a result of the university changing it's mail server that we authenticate off of. I'm currently working on the problem and hope to resolve it as quickly as possible. If you still have the cookie on your computer from your last login you should be able to get in, otherwise, the site is as a good as offline.
--
Martin Lindsay
SOCIS System Administrator
- Login to post comments

You should just turn this
You should just turn this into a marquee on the main page.
AUTHENTICATION FINALLY UP! NASDAQ PLUMMETS 150 POINTS!
___________
Josh Gaber
That's dangerous! In the butt!
Yes Josh, I agree. (and I
Yes Josh, I agree. (and I lol'd)
From what we are told though it will only function as it is until June 30th. CCS did a bit of analysing for us and if they are correct it is just a small modification needed to the imap_auth module to fix the problem. If I remember correctly it's actually only one single character that needs to be changed. So a great big thanks goes out to them.
--
Martin Lindsay
SOCIS System Administrator
What did you need to change?
What did you need to change? Can you post it here?
--
Andrew
We have not yet tested the
We have not yet tested the suggestion as we are currently running from their legacy.mail.uoguelph.ca server which functions the way imap_auth needs it to currently. Here is an excerpt from their email:
------------
Looking at the Drupal site and some of the example code they have - my guess is it may be the mailbox specification used by the code. When we moved to Zimbra the inbox specification changed from INBOX. (note the period at the end) to INBOX (without the dot) - changing to the right inbox specifier should fix the problem. Until June 30th we have created a link back to the old system (legacy.mail.uoguelph.ca) this would work until you can get someone to check and possibly fix your code but be aware it drops dead at the end of June
example code I was looking at that made me suspicious
function imap_auth_auth($username,$password,$server) {
global $user;
$imap_s = variable_get('imap_auth_server','localhost');
if ($imap = imap_open('{'.$imap_s.'}INBOX.',$username,$password)) {
imap_close($imap);
return TRUE;
} else {
return FALSE;
}
the if statement would change to
if ($imap = imap_open('{'.$imap_s.'}INBOX',$username,$password)) {
You will need to check your code - as things stand this is the only thing I can think
would be causing a problem here.
----------------------
We plan to test it soon, and if we can't get it working, then we will try rolling to LDAP authentication.
--
Martin Lindsay
SOCIS System Administrator
Wow, I'm impressed that they
Wow, I'm impressed that they actually looked at the code. It's been a while, but when I had IMAP setup for the old CSA site, I'm pretty sure I could specify that in the configs, without having to touch the code. I remember putting in the whole imap_open string as described here: http://ca3.php.net/manual/en/function.imap-open.php
But if the fix ends up working for you, be sure to file an issue on the module, or better yet write a patch to allow users to change it :D
--
Andrew
You're right about being
You're right about being able to specify the inbox in the configuration, but by the looks of the code it is hard-coded anyways, it was probably something they intended to include and never got around to finishing. That's my guess at least.
--
Martin Lindsay
SOCIS System Administrator
It turns out that the code
It turns out that the code suggestion they gave us was not actually of any use at all, but the problem is solved, and it may just help some of you that have been having issues using the new email system over imap. By the looks of things, it will not allow access unless you use SSL, and do not validate the cert. The mailbox information we're now using is, "{mail.uoguelph.ca:993/imap/ssl/novalidate-cert}INBOX".
The previous issue about the folder specified being wrong was not the issue, and Andrew was correct about being able to specify it properly. When I took a closer look at the code I found that it does in fact use the box properly, and that the example code CCS was looking at was not even close to the actual imap_auth code.
The issue is now (I believe) resolved. Thank you to everybody who helped out along the way.
Cheers.
--
Martin Lindsay
SOCIS System Administrator
Glad you got it working.
Glad you got it working. It's strange that you have to turn off SSL validation, because the CCS cert is properly signed.
It's probably a good thing that they now enforce SSL.
--
Andrew