[EMAIL PROTECTED] Authen-SASL-Cyrus-0.11]# cc -shared -lsasl2 -L/usr/local/ lib Cyrus.o -o blib/arch/auto/Authen/SASL/Cyrus/Cyrus.so
[EMAIL PROTECTED] Authen-SASL-Cyrus-0.11]# ldd ./blib/arch/auto/Authen/SASL/ Cyrus/Cyrus.so
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb75cf000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7497000)
libdl.so.2 => /lib/libdl.so.2 (0xb7494000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb7481000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7454000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)


[EMAIL PROTECTED] /tmp]# /tmp/test.pl
Local error at /tmp/test.pl line 15, <DATA> line 283.

So that has helped, but now I am connecting to the ldap server. But the bind is now failing.

On 08/23/2004 03:28:16 PM, Quanah Gibson-Mount wrote:


--On Monday, August 23, 2004 6:45 PM +0000 "Derek T. Yarnell" <[EMAIL PROTECTED]> wrote:


[EMAIL PROTECTED] /tmp]# cat test.pl # !/usr/local/bin/perl -w use Net::LDAP; use MIME::Base64; use Authen::SASL; use Socket;

$server='ldap.cs.umd.edu';
my $name = gethostbyaddr(inet_aton($server), AF_INET);

my $ldap = Net::LDAP->new($name, version=>3) || die "$@";

my $slavesasl = Authen::SASL->new(mechanism=>'GSSAPI');
my $mesg = $ldap->bind("uid=derek,ou=people,dc=cs,dc=umd,dc=edu",
sasl=>$slavesasl);

$mesg->code && die $mesg->error;

$mesg = $ldap->search(async=>1,filter=>"(uid=derek)",base=>"dc=cs,
dc=umd,dc=edu");

@entries = $mesg->entries;

$entry = shift (@entries);
$uid = ($entry->get_value("uid"));
print "uid $uid\n";
[EMAIL PROTECTED] /tmp]# ./test.pl
/usr/local/bin/perl: relocation error: /usr/local/perl-5.8.2/lib/
site_perl/5.8.2/i686-linux/auto/Authen/SASL/Cyrus/Cyrus.so: undefined
symbol: sasl_client_init


[EMAIL PROTECTED] /tmp]# ldd /usr/local/perl-5.8.2/lib/site_perl/5.8.2/ i686-
linux/auto/Authen/SASL/Cyrus/Cyrus.so
libc.so.6 => /lib/tls/libc.so.6 (0xb74aa000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

So, what library is sasl_init found in, and is it statically compiled into Cyrus.so?


BTW, I use perl 5.6.1. There was another user on the list having problems with perl 5.8, and I haven't had the time to test 5.8.

--Quanah


-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

--
Derek T. Yarnell
UNIX System Administrator
Computer Science Deparment
University of Maryland




Reply via email to