On Fri, 16 Oct 2009, Steve Kemp wrote:

 According to my dictionary "Authentification" is not
a real word.

According to mine 'canceled' isn't either. Wanna try again? :-)


 Patch:

--
diff --git a/lib/Qpsmtpd/Auth.pm b/lib/Qpsmtpd/Auth.pm
index 635491a..993c176 100644
--- a/lib/Qpsmtpd/Auth.pm
+++ b/lib/Qpsmtpd/Auth.pm
@@ -42,7 +42,7 @@ sub SASL {
          $session->respond(334, e64("Username:"));
          $user = decode_base64(<STDIN>);
          if ($user eq '*') {
-            $session->respond(501, "Authentification canceled");
+            $session->respond(501, "Authentication canceled");
            return DECLINED;
          }
        }
@@ -51,7 +51,7 @@ sub SASL {
        $passClear = <STDIN>;
        $passClear = decode_base64($passClear);
        if ($passClear eq '*') {
-          $session->respond(501, "Authentification canceled");
+          $session->respond(501, "Authentication canceled");
          return DECLINED;
        }
    }
@@ -68,7 +68,7 @@ sub SASL {
        my $line = <STDIN>;

        if ( $line eq '*' ) {
-            $session->respond( 501, "Authentification canceled" );
+            $session->respond( 501, "Authentication canceled" );
            return DECLINED;
        }

@@ -82,7 +82,7 @@ sub SASL {

    # Make sure that we have enough information to proceed
    unless ( $user && ($passClear || $passHash) ) {
-      $session->respond(504, "Invalid authentification string");
+      $session->respond(504, "Invalid authentication string");
      return DECLINED;
    }

--


Steve
--
Debian GNU/Linux System Administration
http://www.debian-administration.org/


Reply via email to