cvs commit: qpsmtpd/lib/Qpsmtpd Auth.pm

[email protected] (Matt Sergeant)
Newsgroups perl.cvs.qpsmtpd
Message-ID <[email protected]>
cvsuser     04/07/05 02:24:59

  Modified:    lib/Qpsmtpd Auth.pm
  Log:
  Don't allow AUTH under HELO (rfc 821) connections
  
  Revision  Changes    Path
  1.2       +2 -0      qpsmtpd/lib/Qpsmtpd/Auth.pm
  
  Index: Auth.pm
  ===================================================================
  RCS file: /cvs/public/qpsmtpd/lib/Qpsmtpd/Auth.pm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -w -r1.1 -r1.2
  --- Auth.pm	29 Jun 2004 21:45:09 -0000	1.1
  +++ Auth.pm	5 Jul 2004 09:24:59 -0000	1.2
  @@ -221,6 +221,8 @@
       return $self->respond( 503, "but you already said AUTH ..." )
         if ( defined $self->{_auth}
           and $self->{_auth} == OK );
  +    return $self->respond( 503, "AUTH not defined for HELO" )
  +      if ( $self->connection->hello eq "helo" );
   
       return $self->{_auth} = Qpsmtpd::Auth::SASL( $self, $arg, @stuff );
   }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.