Hi, I have been using PerLDAP with the Sun-supplied LDAP SDK for several
years now with much success. However, I now need to be able to connect via
SSL to an AD server, so I am trying to do that with PerLDAP. I'm using
a machine other than the one that I have been running with until I know it
will install correctly.
I'm doing this on a Sun machine running Solaris 9. I've downloaded
ldapcsdk5.08-SunOS5.8_OPT.OBJ.tar.gz and unzipped it into a directory called
/usr/local/pkg/ldapsdk . I then go to the directory where I have the source
to perldap-1.4.1 and do "perl Makefile.PL". Here is the dialog from that:
bash-2.05$ perl Makefile.PL
PerLDAP - Perl 5 Module for LDAP
Directory containing 'include' and 'lib' directory of the Netscape
LDAP Software Developer Kit (default: /usr): /usr/local/pkg/ldapsdk
Using LDAPv3 Developer Kit (default: yes)?
Include SSL Support (default: yes)?
Located multiple libraries:
Libraries to link with (default: -L/usr/local/pkg/ldapsdk/lib -lldap50): -L/usr/local/pkg/ldapsdk/lib -lssldap50
Writing Makefile for Mozilla::LDAP::API
I then run the make and make install with no errors. But when I try to run
a perl script that uses PerLDAP, I get this error:
Can't load '/usr/perl5/site_perl/5.6.1/sun4-solaris-64int/auto/Mozilla/LDAP/API/API.so' for module Mozilla::LDAP::API: ld.so.1: /usr/perl5/5.6.1/bin/perl: fatal: libldap50.so: open failed: No such file or directory at /usr/perl5/5.6.1/lib/sun4-solaris-64int/DynaLoader.pm line 206.
Compilation failed in require at /usr/perl5/site_perl/5.6.1/sun4-solaris-64int/Mozilla/LDAP/Utils.pm line 29.
BEGIN failed--compilation aborted at /usr/perl5/site_perl/5.6.1/sun4-solaris-64int/Mozilla/LDAP/Utils.pm line 29.
Compilation failed in require at /usr/perl5/site_perl/5.6.1/sun4-solaris-64int/Mozilla/LDAP/Conn.pm line 32.
BEGIN failed--compilation aborted at /usr/perl5/site_perl/5.6.1/sun4-solaris-64int/Mozilla/LDAP/Conn.pm line 32.
Compilation failed in require at ./test-ad.pl line 2.
BEGIN failed--compilation aborted at ./test-ad.pl line 2.
Note that when i ran the Makefile, I replaced the default "-lldap50" with
"-lssldap50". The above error occurs even when I do not try and use the
certificate file option when doing the connect. If I take the default
-lldap50 and install it like that, perl scripts will work if I don't try and
use a certificate file, but blow off when I do try and use one. Can anyone
tell me what I'm doing wrong? Thanks...
University of Alabama in Huntsville