From: Joshua J. E. <jj...@sa...> - 2002-11-07 17:54:06
|
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'); -JE ----------------------------------------------- Josh England Sandia National Laboratory, Livermore, CA Distributed Information Systems email: jj...@sa... phone: (925) 294-2076 |