SID-00941: Problems configuring LdapContrib
| Status: |
Answered |
TWiki version: |
5.0.0 |
Perl version: |
5.10.1 |
| Category: |
LdapContrib |
Server OS: |
Ubuntu Server 10.04 x86 2.6.32-21 |
Last update: |
13 years ago |
My previous support ticket was ignored (
http://twiki.org/cgi-bin/view/Support/SID-00918
), So to move forwards I've gone ahead and started afresh on a VM with the latest build of Ubuntu Server and the latest version of Twiki (in order to have working
TinyMCE).
I'm now having issues when attempting to install the
LdapContrib plugin, I've attempted to go via the browser as well as on the command line.
Here is the output from using <verbatim>configure</verbatim> in the browser.
<i>Part 1</i>
<verbatim>Warning: CPAN is not available, some installer functions have been disabled
###
LdapContrib Installer ###
This installer must be run from the root directory of your TWiki
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....
* LdapContrib depends on cpan package Authen::SASL >=2.00
which is described as "Optional"
But when I tried to find it I got this error:
Insecure dependency
##########################################################
Checking dependency on DB_File....
* LdapContrib depends on cpan package DB_File >=1.00
which is described as "Required"
But when I tried to find it I got this error:
Insecure dependency
##########################################################
Checking dependency on Digest::MD5....
##########################################################
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:
Insecure dependency
##########################################################
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:
Insecure dependency
##########################################################
Checking dependency on Unicode::MapUTF8....
* LdapContrib depends on cpan package Unicode::MapUTF8 >=1.11
which is described as "Required"
But when I tried to find it I got this error:
Insecure dependency
Fetching the archive for TWiki::Contrib::LdapContrib.
</verbatim>
<i>Part 2</i>
<verbatim>Insecure dependency in require while running with -T switch at /usr/share/perl5/LWP/UserAgent.pm line 386.
at /usr/share/perl5/LWP/UserAgent.pm line 386
LWP::UserAgent::get('LWP::UserAgent=HASH(0x9f76ae0)', 'http://twiki.org/p/pub/Plugins/LdapContrib/LdapContrib.tgz') called at tools/extender.pl line 532
TWiki::Extender::getComponent('LdapContrib', 'ARRAY(0x9927708)', 'archive') called at tools/extender.pl line 559
TWiki::Extender::getArchive('LdapContrib') called at tools/extender.pl line 947
TWiki::Extender::_install('ARRAY(0x9facaa0)', 'LdapContrib') called at tools/extender.pl line 1046
TWiki::Extender::install('http://twiki.org/p/pub/Plugins', 'LdapContrib', 'LdapContrib', 'MANIFEST', 'data/TWiki/LdapContrib.txt,0644,\x{a}lib/TWiki/Client/LdapApacheL...', 'DEPENDENCIES', 'Authen::SASL,>=2.00,1,cpan,Optional\x{a}DB_File,>=1.00,1,cpan,Req...') called at /var/www/twiki/LdapContrib_installer line 104
require /var/www/twiki/LdapContrib_installer called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 165
eval {...} called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 162
TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x93ef598)') called at /var/www/twiki/bin/configure line 708
TWiki::_actionInstallExtension() called at /var/www/twiki/bin/configure line 478
at /usr/share/perl/5.10/CGI/Carp.pm line 356
CGI::Carp::realdie('Insecure dependency in require while running with -T switch a...') called at /usr/share/perl/5.10/CGI/Carp.pm line 437
CGI::Carp::die('Insecure dependency in require while running with -T switch a...') called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 167
eval {...} called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 162
TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x93ef598)') called at /var/www/twiki/bin/configure line 708
TWiki::_actionInstallExtension() called at /var/www/twiki/bin/configure line 478</verbatim>
Here is the output from running via the command line: <verbatim>sudo perl
LdapContrib_installer</verbatim>
The installer gets as far as this and just sits doing nothing:
<verbatim>Checking if your kit is complete...
Looks good
Warning: prerequisite Digest::HMAC_MD5 0 not found.
Writing Makefile for Authen::SASL
Could not read '/home/riviera/.cpan/build/Authen-SASL-2.15-uxXA6z/META.yml'. Falling back to other methods to determine prerequisites
Unsatisfied dependencies detected during ----
GBARR/Authen-SASL-2.15.tar.gz ----
Digest::HMAC_MD5 [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes] yes</verbatim>
Does anyone have any ideas on how to get
LdapContrib working on Twiki 5.0?
--
RichardHFrost - 2010-08-11
Discussion and Answer
Resolved with the following packages:
sudo apt-get install libauthen-sasl-perl libnet-ldap-perl rcs
... then a lot of screwing around with the Ldap entries in the
LocalSite.cfg
Thanks
--
RichardHFrost - 2010-08-20
Here is my cron.daily script to update the Ldap entries:
#!/bin/sh
#
#
cd /var/www/twiki/bin && ./view refreshldap=on Main/WebHome >/dev/null
chown www-data:www-data /var/www/twiki/working/work_areas/* -R >/dev/null
remember to chmod +x it.
also, I forgot to add these additional packages to my previous post:
sudo apt-get install libunicode-maputf8-perl libcgi-network-perl
--
RichardHFrost - 2010-08-20
The insecure dependency error when running the configure script is now fixed in
TWikibug:Item6534
. Action you can take:
- Workaround: Remove the
T switch in the first line of file twiki/bin/configure.
- Manual fix: Please apply patch in TWikibug:Item6534
dated 2012-09-17.
- Wait for fix: The fix will be released in the upcoming TWiki-5.1.2 release (in a few weeks).
--
PeterThoeny - 2012-09-17
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.