Tags:
create new tag
view all tags

Question

I have installed the LDAPPasswordChanger Plugin. But if I try to insert %LDAPPASSWORDCHANGER% into any page I get

Software error:

Undefined subroutine &TWiki::Plugins::LDAPPasswordChangerPlugin::genDialog called at /srv/tmv114/collab/twiki-leihs/lib/TWiki/Plugins/LDAPPasswordChangerPlugin.pm line 103.

For help, please send mail to the webmaster ...

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- TorstenSchlabach - 23 Jul 2004

Answer

I had the same message displayed when I included the LDAPPasswordChanger Plugin. In my case I the solution was to install the perl module Net::LDAP. This module is listed as a dependency for the plugin, this perl module has a couple of other dependencies most of which are optional. I am not a perl expert (actually I no almost nothing about perl) so I cannot tell you authoritatively how to tell if the perl LDAP module is installed for you but you might want to try perl -V to get the locations of the perl libraries and then look for Net/LDAP.pm in those locations. If you don't find it then it probably isn't installed.

-- GrahamMacKenzie - 10 Sep 2004

Answer

Yes, you're right. Installing Net::LDAP solves the problem. Actually the error message does not necessarily point you in that direction. The problem arises from the fact that the use Net::LDAP is only in the talkToLdap subroutine. This leads to all parts of the .pm before that to be compiled and all the rest (including genDialog) to be silently ignored. I am not sure if there would be a better way to handle this in Perl. Anything that would immediatelly give a clear error message such as "Net::LDAP missing" would be fine.

Anyway ... finally it's solved. And once you know it it is not a problem.

-- TorstenSchlabach - 19 Sep 2004

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-09-19 - TorstenSchlabach
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.