I seem unable to find any combination of Authen::SASL::Cyrus
and Net::LDAP that work together. After googling around the
net for several days it seems this is a fairly common problem.
Can we work through this, I can't imagine that it's that big
of a problem. I just don't have enough knowledge of sasl and
perl XS to fix it myself.
Here is a quick example...
bass [~/ncvs/systems/led](SHARK)(48)> cat test
#!/opt/perl/bin/perl -w
use Net::LDAP;
use Authen::SASL;
my $ldap = Net::LDAP->new("mooney.anim.dreamworks.com", version=>3) ||
die
"$@";
my $slavesasl = Authen::SASL->new(mechanism=>'GSSAPI');
my $mesg =
$ldap->bind("uid=lile,ou=people,dc=anim,dc=dreamworks,dc=com",
sasl=>$slavesasl);
$mesg->code && die $mesg->error;
$mesg =
$ldap-
>search(filter=>"(uid=lile)",base=>"dc=anim,dc=dreamworks,dc=com");
$mesg->code && die $mesg->error;
@entries = $mesg->entries;
$entry = shift (@entries);
$uid = ($entry->get_value("uid"));
print "uid $uid\n";
bass [~/ncvs/systems/led](SHARK)(49)> ./test
Unknown SASL property: 'sockname'
(user|ssf|maxout|realm|optctx|iplocalport|ipremoteport|service|serverfqd
n|authsource|mechname|authuser)
All of the perl modules were compiled today from CPAN.
PERLLOCAL(1) User Contributed Perl Documentation
PERLLOCAL(1)
Thu Jul 8 10:50:20 2004: "Module" Convert::ASN1
o "installed into: /opt/perl/lib/site_perl/5.8.4"
o "LINKTYPE: dynamic"
o "VERSION: 0.18"
o "EXE_FILES: "
Thu Jul 8 10:50:23 2004: "Module" URI
o "installed into: /opt/perl/lib/site_perl/5.8.4"
o "LINKTYPE: dynamic"
o "VERSION: 1.31"
o "EXE_FILES: "
Thu Jul 8 10:50:31 2004: "Module" XML::Parser
o "installed into: /opt/perl/lib/site_perl/5.8.4"
o "LINKTYPE: dynamic"
o "VERSION: 2.34"
o "EXE_FILES: "
Thu Jul 8 10:50:42 2004: "Module" ExtUtils::AutoInstall
o "installed into: /opt/perl/lib/site_perl/5.8.4"
o "LINKTYPE: dynamic"
o "VERSION: 0.59"
o "EXE_FILES: "
Thu Jul 8 10:50:51 2004: "Module" Authen::SASL
o "installed into: /opt/perl/lib/site_perl/5.8.4"
o "LINKTYPE: dynamic"
o "VERSION: 2.08"
o "EXE_FILES: "
Thu Jul 8 10:50:53 2004: "Module" XML::SAX::Base
o "installed into: /opt/perl/lib/site_perl/5.8.4"
o "LINKTYPE: dynamic"
o "VERSION: 1.02"
o "EXE_FILES: "
Thu Jul 8 10:52:02 2004: "Module" Net::SSLeay
o "installed into: /opt/perl/lib/site_perl/5.8.4"
o "LINKTYPE: dynamic"
o "VERSION: 1.25"
o "EXE_FILES: "
Thu Jul 8 10:52:10 2004: "Module" IO::Socket::SSL
o "installed into: /opt/perl/lib/site_perl/5.8.4"
o "LINKTYPE: dynamic"
o "VERSION: 0.96"
o "EXE_FILES: "
Thu Jul 8 10:52:39 2004: "Module" Net::LDAP
o "installed into: /opt/perl/lib/site_perl/5.8.4"
o "LINKTYPE: dynamic"
o "VERSION: 0.32"
o "EXE_FILES: "
Thu Jul 8 10:53:17 2004: "Module" Authen::SASL::Cyrus
o "installed into: /opt/perl/lib/site_perl/5.8.4"
o "LINKTYPE: dynamic"
o "VERSION: 0.11"
o "EXE_FILES: "
perl v5.8.4 2004-07-08
PERLLOCAL(1)
Thanks!
--
Larry
|