This question about Using an extension: Answered

LdapContrib installation errors

Greetings.

I've got a Foswiki site up and running on WinXP with Strawberry Perl 5.12 the CPAN dependencies for LdapContrib install without any apparent errors, but when I go to install the extension, I get the following errors:

CPAN is disabled, disabling CPAN

### LdapContrib Installer ###

This installer must be run from the root directory of your Foswiki
installation.
* You can abort the script at any point and re-run it later
* If you answer 'no' to any questions you can always re-run
the script again later
##########################################################
Checking dependency on Authen::SASL....
Authen::SASL v2.15 loaded
##########################################################
Checking dependency on DB_File....
DB_File v1.82 loaded
##########################################################
Checking dependency on Digest::MD5....
Digest::MD5 v2.39 loaded
##########################################################
Checking dependency on Net::LDAP....
*** LdapContrib depends on cpan package Net::LDAP >=0.33
which is described as "Required"
But when I tried to find it I got this error:

"LDAP_SUCCESS" is not exported by the Net::LDAP::Constant module
"LDAP_COMPARE_TRUE" is not exported by the Net::LDAP::Constant module
"LDAP_COMPARE_FALSE" is not exported by the Net::LDAP::Constant module
Can't continue after import errors at C:/strawberry/perl/site/lib/Net/LDAP/Message.pm line 7
BEGIN failed--compilation aborted at C:/strawberry/perl/site/lib/Net/LDAP/Message.pm line 7, chunk 1.
Compilation failed

##########################################################
Checking dependency on IO::Socket::SSL....
*** LdapContrib depends on cpan package IO::Socket::SSL >=1.0
which is described as "Optional"
But when I tried to find it I got this error:

Can't load 'C:/strawberry/perl/vendor/lib/auto/Net/SSLeay/SSLeay.dll' for module Net::SSLeay: load_file:The specified module could not be found at C:/strawberry/perl/lib/DynaLoader.pm line 200, chunk 1.
at C:/strawberry/perl/vendor/lib/IO/Socket/SSL.pm line 18
Compilation failed

##########################################################
Checking dependency on Unicode::MapUTF8....
Unicode::MapUTF8 v1.11 loaded
Archive has already been unpacked.

### Installation finished ###

However, LDAP services appear to be functioning correctly. I have configured the Ldap settings and am able to successfully authenticate to Foswiki via LDAP.

So..are these errors anything of consequence? What, if anything, needs to be done to correct these errors? I have subsequently attempted to install NewUserPlugin and get similar errors, but I have not yet tried to actually use the plugin yet.

Thanks in advance!

-- TimMenke - 25 Jun 2010

I havn't used LdapContrib from windows - but I would suggest using the strawberry perl CPAN installer to make sure you have the pre-requisite modules installed.

-- SvenDowideit - 28 Jun 2010

I did install the dependencies via strawberry perl CPAN and there were no errors that I could see, just the installation of ldapcontrib generates the error. As I said, everything APPEARS to be working fine, authentication to the foswiki site via ldap seems to work. Just reporting the error and raising the question. Thanks.

-- TimMenke - 29 Jun 2010

See Tasks.Item8967

-- JulianLevens - 30 Jun 2010

Sorry JulianLevens, but I can't seem to find a task with that number. Here's a little bit more info as it seems relevant. The versions of the dependencies I have installed are as follows:
Authen::SASL 2.15
DB_File 1.820
Digest::MD5 2.40
Net::LDAP .4001
IO::Socket::SSL 1.33
Unicode::MapUTF8 1.11

Also, I am able to recreate the error on the new server i'm building, but as before, LDAP authentication seems to work fine

-- TimMenke - 13 Jul 2010

The task is there, but I did need to add \[\[\]\] around Tasks.Item8967 to force the link. That only relates to the Net::LDAP sub-module Net::LDAP::Constant which seems to raise errors for any install (not just LDAP::Contrib) as it confuses configure. However, as you say the LDAP code actually works.

Your other error relates to SSL and this only required if you need to connect to your LDAP server over SSL.

-- JulianLevens - 13 Jul 2010

Hopefully this is fixed. There is a small change to tools/extender.pl that will allow extensions to be installed after installation of the LdapContrib The Dependency check will still encounter the error when it loads the LDAP modules, however this should not block operation. See http://trac.foswiki.org/changeset/8346 for details on the patch. This will get fixed in Foswiki 1.1 and 1.0.10.

-- GeorgeClark - 29 Jul 2010

QuestionForm edit

Subject Using an extension
Extension LdapContrib
Version Foswiki 1.0.9
Status Answered
Topic revision: r7 - 29 Jul 2010, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy