I have a custom build perl script that I adapted from the one in
the O’reily “RT Essentials” book pg. 81, that queries a LDAP database for
lots of information, parses it, and populates lots of custom fields in RT.
While I am a beginner perl scripter, I have tested by perl script
on the command line (substituting the RT ins and outs because it’s not
running inside RT) and it all works as expected.
However, once plugged into RT as a “Custom action preparation
code:” (Configuration/Global/Scripts), I receive the following error when
the script is triggered:
Jun 21 13:23:45 rt RT: Scrip 16 Prepare failed: Can’t locate object method
"new" via package “Net::LDAP” (perhaps you forgot to load “Net::LDAP”?) at
(eval 332) line 11. Stack: [(eval 332):11]
As I interpret this, RT can’t find Net::LDAP. However, Net::LDAP is
installed according to CPAN, and again, when run as a command line script,
the script has no problems finding it. Do I need to tell RT where to find
the perl modules somehow? Does this have to be specified at compile with
a “require Net::LDAP” tag or some such?
The mailing archive has a similar issue by “mtaylor at real” on Debian (I
am using FreeBSD 5.5), and apparently his issue was resolved by adding
LDAP configuration information to his RTSiteConfig.pm. I have added this
information my RTSiteConfig.pm and have not seen any changes in my error.
Google has not turned up much useful info (except for the RT mailing
I am out of ideas at this point, and would appreciate it if someone could
point me in the right direction. Thanks for any assistance in advance.
John H. Nyhuis
Sr. Computer Specialist
Dept. of Pediatrics
HS RR349B, Box 356320
University of Washington