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

Re: Net::LDAP and GSSAPI authentication

--On Tuesday, November 18, 2003 3:09 PM -0600 Chris Schadl <cschadl@satan.org.uk> wrote:


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,


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.

I got farther than this, but I never got it to work for me. Symas has a copy of Net::LDAPapi that has been updated to use cyrus-sasl that they license (and we bought).


-- Quanah Gibson-Mount Principal Software Developer ITSS/TSS/Computing Systems ITSS/TSS/Infrastructure Operations Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html