From: Quanah Gibson-M. <qu...@st...> - 2002-11-07 18:02:14
|
--On Thursday, November 07, 2002 9:48 AM -0800 "Joshua J. England" <jj...@sa...> wrote: > Environment: > perl-ldap-0.26 > Authen-SASL-2.02 > cyrus-sasl-2.1.7 > > I am trying to write some perl scripts to manipulate data in my LDAP > directory that authenticates with Cyrus SASL (DIGEST-MD5). Nothing I'm > trying seems to work though. When I try to run my program I get: > > No SASL mechanism found > at /usr/lib/perl5/site_perl/5.6.1/Authen/SASL.pm line 62 > > > When I try the EXTERNAL mechanism I get: > > SASL(-4): no mechanism available: External SSF not good enough > > > I've tried installing Authen-SASL-Cyrus-0.05, but it will not even > compile and doesn't seem to support libsasl2. I've hacked it out enough > to make it compile, but I get a segfault when running. I think it just > won't work with sasl2. > > Has anyone gotten authentication to work with Cyrus SASL and libsasl2? > Is anything obviously wrong? > ># !/usr/bin/perl > use Net::LDAP; > use Authen::SASL; ># use Authen::SASL::Cyrus; > ># Initiate LDAP session > $ldap = Net::LDAP->new('ldapserver', onerror => 'die'); > $sasl = Authen::SASL->new( > mechanism => 'DIGEST-MD5', > callback => { > pass => \&fetch_password, > user => $user, > } > ); > ># $conn = $sasl->client_new('ldap', 'ldapserver'); Josh, I've been working on a similar problem with GSSAPI authentication. From what I can tell, there is some problem with how the Net::LDAP piece is setting up the bind to the ldapserver. --Quanah -- Quanah Gibson-Mount Senior Systems Administrator ITSS/TSS/Computing Systems Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html |