Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d66937c35a
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (19 sloc) 0.607 kb
#!perl
use Test::More tests => 6;
use Authen::SASL qw(Perl);
my $sasl = Authen::SASL->new(
mechanism => 'LOGIN',
callback => {
user => 'gbarr',
pass => 'fred',
authname => 'none'
},
);
ok($sasl, 'new');
is($sasl->mechanism, 'LOGIN', 'sasl mechanism');
my $conn = $sasl->client_new("ldap","localhost");
is($conn->mechanism, 'LOGIN', 'conn mechanism');
is($conn->client_start, '', 'client_start');
is($conn->client_step("username"), 'gbarr', 'client_step username');
is($conn->client_step("password"), 'fred', 'client_step password');
## XXX TODO check for success and extra steps
Jump to Line
Something went wrong with that request. Please try again.