Authen::SASL::Perl::ANONYMOUS - Anonymous Authentication class


Authen-SASL documentation Contained in the Authen-SASL distribution.

Index


Code Index:

NAME

Top

Authen::SASL::Perl::ANONYMOUS - Anonymous Authentication class

SYNOPSIS

Top

  use Authen::SASL qw(Perl);

  $sasl = Authen::SASL->new(
    mechanism => 'ANONYMOUS',
    callback  => {
      authname => $mailaddress
    },
  );

DESCRIPTION

Top

This method implements the client part of the ANONYMOUS SASL algorithm, as described in RFC 2245 resp. in IETF Draft draft-ietf-sasl-anon-XX.txt.

CALLBACK

The callbacks used are:

authname

email address or UTF-8 encoded string to be used as trace information for the server

SEE ALSO

Top

Authen::SASL, Authen::SASL::Perl

AUTHORS

Top

Software written by Graham Barr <gbarr@pobox.com>, documentation written by Peter Marschall <peter@adpm.de>.

Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org>

COPYRIGHT

Top


Authen-SASL documentation Contained in the Authen-SASL distribution.

# Copyright (c) 2002 Graham Barr <gbarr@pobox.com>. All rights reserved.
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.

package Authen::SASL::Perl::ANONYMOUS;

use strict;
use vars qw($VERSION @ISA);

$VERSION = "2.14";
@ISA	 = qw(Authen::SASL::Perl);

my %secflags = (
	noplaintext => 1,
);

sub _order { 0 }
sub _secflags {
  shift;
  grep { $secflags{$_} } @_;
}

sub mechanism { 'ANONYMOUS' }

sub client_start {
  shift->_call('authname')
}

sub client_step {
  shift->_call('authname')
}

1;

__END__