Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Setting up a Site Server with Jaguar
Subject:   Panther = IMAP Broken
Date:   2003-10-25 08:19:44
From:   anonymous2
Okay, I partially got my IMAP configuration working again by adding that last line to the inetd.conf file. However, whenever I try to authenticate in Mail, it doesn't authenticate properly. The first time that I did it, it also didn't recognize the certificate, but now that seems to be ok. Any ideas on why it wouldn't be authenticating properly?
Full Threads Oldest First

Showing messages 1 through 12 of 12.

  • Panther = IMAP Broken
    2003-10-29 07:12:31  anonymous2 [View]

    See this post for the resolution....

    http://discussions.info.apple.com/WebX?128@103.JWHaauufjsH.0@.599b59ed
  • Panther = IMAP Broken
    2003-10-27 18:34:41  anonymous2 [View]

    Take a look here for a quick fix.

    http://discussions.info.apple.com/WebX?128@195.LLVqayHZjFf.7@.599b59ed
  • Panther = IMAP Broken
    2003-10-27 10:20:54  cian [View]

    I think 10.3 has PAM (Plugable Authenticator Module) so I am going to try compiling like so:
    make osx PASSWDTYPE=pam SSLTYPE=unix
    --or--
    make osx PASSWDTYPE=pmb SSLTYPE=unix

    Any advice would be useful
    • Panther = IMAP Broken
      2003-10-30 21:08:05  anonymous2 [View]

      The latest development tar ball for UW-IMAP includes changes that support MacOS X 10.3 Panther.

      Get:
      ftp://ftp.cac.washington.edu/mail/imap-2003.DEV.tar.Z

      Compile with (OpenSSL must have been installed):
      make oxp

      (without SSL support: make oxp SSLTYPE=none)

      Also, you need "imap" in /etc/pam.d/, so;

      cd /etc/pam.d
      sudo cp login imap
      • Panther = IMAP Broken
        2003-10-31 11:00:39  anonymous2 [View]

        I was the original poster indicating that this was broken. I tried your solution -- worked like a charm. Thanks a ton!
        • Panther = IMAP Broken
          2003-11-01 06:11:41  anonymous2 [View]

          I hate having to reply to my own message, but it's not working for some reason. In Mail.app, it appears to check it and log in just fine. However, I can't seem to send e-mail to the LDAP server. It could be something entirely unrelated. Checking my LDAP account seems to go off without a hitch. It just doesn't seem to receive it. Oh, and when I send e-mail, it doesn't bounce back -- very weird.
    • Panther = IMAP Broken-> 2 solutions
      2003-10-30 19:16:06  anonymous2 [View]

      There has been two solutions posted on the Apple Discussion board (not in the 10.3 section but in 10.2 Jaguar section however).

      Please see:

      http://discussions.info.apple.com/WebX?128@33.HYdLaNZujLe.0@.599b59ed

      PAM method works by:

      Changing imap-2002e/src/osdep/unix/Makefile as below, adding CHECKPW=pam, and also adding -lpam:

      osx: # Mac OS X
      $(BUILD) `$(CAT) SPECIALS` OS=$@ \
      CHECKPW=pam CRXTYPE=nfs \
      SPOOLDIR=/var/spool MAILSPOOL=/var/mail \
      BASECFLAGS="-g -O" \
      EXTRALDFLAGS="-lpam"

      GCC will complain that security/pam_appl.h cannot
      be found. You can modify and ifdef in the source for
      MacOS X 10.3, but if you want a quick and dirty fix,
      you can just copy /usr/include/pam directory to
      /usr/include/security.

      This produced a imapd binary without any compile errors when SSL is not included.


      Also copy existing /etc/pam.d/login into imap:
      cd /etc/pam.d
      cp login imap

      I initially had confusing situations of the above working and not working, but it has been working at least for one day after the change.

      UW-IMAP people including Mr. Mark Crispin are aware of the IMAP on Panther situation, though he does not use Apple. The above changes were suggested by Mark.


  • Panther = IMAP Broken
    2003-10-27 07:14:29  sbromlin [View]

    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.
    • Panther = IMAP Broken
      2003-10-27 08:51:11  anonymous2 [View]

      sbromlin do you care to share your new source with us?
      It would be a great help.
      Thanks
      • 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.
  • Panther = IMAP Broken
    2003-10-27 04:29:38  anonymous2 [View]

    Same Problem, I have tried finks binaries too and they don't work either.
  • Panther = IMAP Broken
    2003-10-26 14:04:02  anonymous2 [View]

    I'm suffering the same problem. I've tried to build imapd with and without SSL. I can telnet successfully to either port 143 or 993 and get an appropriate banner listing the authentiction requirements, but I'm unable to satisfy the password prompts.

    I tried creating an entry in /etc/passwd using my hashed password thinking that imapd was parsing that file directly. No success.