File: authnull

package info (click to toggle)
qpsmtpd 0.40-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,024 kB
  • ctags: 393
  • sloc: perl: 6,462; sh: 383; makefile: 54
file content (17 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl
#
#  This plugin doesn't actually check anything and will authenticate any
#  user no matter what they type.  It is strictly a proof of concept for
#  the Qpsmtpd::Auth module.  Don't run this in production!!!
#

sub hook_auth {
    my ( $self, $transaction, $method, $user, $passClear, $passHash, $ticket ) =
      @_;

    #  $DB::single = 1;
    $self->log( LOGERROR, "authenticating $user using $method" );

    return ( OK, "$user is free to abuse my relay" );
}