Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0a3, 2.1.3, 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: SMTPServer
    • Labels:
      None
    • Environment:
      Clie Mail

      Description

      Reported by Chris Means

      > I keep getting a SMTP Authentication Failed (535).
      > smtpserver: Command received: AUTH PLAIN Y21lYW5zAGNtZWFucwBaYXBob2Q=

      It appears that our AUTH PLAIN implementation is wrong. Outlook works because it uses AUTH LOGIN, which we do have implemented properly.

        Activity

        Hide
        Noel J. Bergman added a comment -

        Fixed CVS for 2.2.0a16. See http://cvs.apache.org/viewcvs.cgi/james-server/src/java/org/apache/james/smtpserver/SMTPHandler.java?r1=1.35.4.16&r2=1.35.4.17&diff_format=h

        Basic fix is:

        • user = authTokenizer.nextToken();
        • pass = authTokenizer.nextToken();
          + String authorize_id = authTokenizer.nextToken();
          + user = authTokenizer.nextToken();
          + try { + pass = authTokenizer.nextToken(); + }

          + catch (java.util.NoSuchElementException _)

          { + pass = user; + user = authorize_id; + }
        Show
        Noel J. Bergman added a comment - Fixed CVS for 2.2.0a16. See http://cvs.apache.org/viewcvs.cgi/james-server/src/java/org/apache/james/smtpserver/SMTPHandler.java?r1=1.35.4.16&r2=1.35.4.17&diff_format=h Basic fix is: user = authTokenizer.nextToken(); pass = authTokenizer.nextToken(); + String authorize_id = authTokenizer.nextToken(); + user = authTokenizer.nextToken(); + try { + pass = authTokenizer.nextToken(); + } + catch (java.util.NoSuchElementException _) { + pass = user; + user = authorize_id; + }

          People

          • Assignee:
            Noel J. Bergman
            Reporter:
            Noel J. Bergman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development