[Date Prev][Date Next] [Chronological] [Thread] [Top]

Net::LDAP and GSSAPI authentication



Howdy,

Does anyone have any experience getting the Net::LDAP perl module working
with GSSAPI authentication?  So far I've tried to get it working by
installing Authen::SASL and Authen::SASL::Cyrus from CPAN, along with the
perl-cyrus-sasl package (which provides Authen::SASL::GSSAPI) from
http://www.sxw.org.uk/computing/software/.  However, when I try to bind to
the server as follows:

#!/usr/bin/perl

use strict;
use Net::LDAP;
use Authen::SASL;

my $sasl = new Authen::SASL(mechanism => 'GSSAPI',
                            callback => { user=> sub { undef } } );
my $ldap = new Net::LDAP('lain.leet.org');
my $msg = $ldap->bind("", sasl=>$sasl, version=>3); # Barfs here, apperently

...

The script fails with errors like this:


Argument "Authen::SASL::Cyrus" isn't numeric in subroutine entry at
/usr/local/lib/perl/5.6.1/Authen/SASL/Cyrus.pm line 103, <DATA> line 283.
Can't locate auto/Authen/SASL/Cyrus/client_new.al in @INC (@INC contains:
/usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1
/usr/local/lib/site_perl .) at /usr/local/share/perl/5.6.1/Authen/SASL.pm
line 62

Am I doing something wrong?  Any help would be appriciated.

-- 
Chris Schadl
cschadl@satan.org.uk