| Article: |
Setting up a Site Server with Jaguar | |
| Subject: | Panther = IMAP Broken | |
| Date: | 2003-10-27 07:14:29 | |
| From: | sbromlin | |
|
Response to: Panther = IMAP Broken
|
||
|
I had the same issue and after half a day of digging finally got to the bottom of it. The clue is in the man page for 'getpwent'. It describes that as of 10.3, the pw_passwd field of 'struct passwd' has changed, and that Panther users by default have their authentication go through DirectoryServices rather than the tradition shadow password. I'm certainly glad that Apple has provided versions of ssh, etc. that work with the new scheme, but it seems as though some work is needed to get UW-IMAP to authenticate properly under Panther. If you are interested in doing a small amount of source code hacking to get the server to work for you (as I did), edit "src/osdep/unix/ckp_std.c" and modify the checkpw function so that it no longer uses the crypt function to verify the password. I leave it up to you how best to fix the checkpw function for your situation. |
||
Showing messages 1 through 2 of 2.
-
Panther = IMAP Broken
2003-10-27 08:51:11 anonymous2 [View]
-
Panther = IMAP Broken
2003-10-27 15:36:15 anonymous2 [View]
Well, it is incredibly crufty since I don't have time right now to make it work right, but here goes. The checkpw function in the ckp_std.c source file I referenced tries to run "crypt(pass, pw->pw_passwd)", where pass is the plaintext version of the password supplied by the IMAP client. Since pw->pw_passwd no longer contains the encrypted passwd (it is now simply "********"), I changed the string compare to look like the following:
[ ... && !strcmp("myPassword",pass) ... ]
This works for me because I have only one user account that I want to provide IMAP services for. Note that you have to change "myPassword" to "yourPassword".
It is a stupid, brute-force approach, but it allows me to work with my e-mail in the manner to which I've grown accustomed. ;-) I'm as eager as everyone else for a proper patch to UW-IMAP to work under Panther. Perhaps in a month or so I'll find time to do it myself.
I hope this can help at least a few of you to get back up on your feet.



It would be a great help.
Thanks