On Tue, 24 Aug 2004, Mark Powell wrote: > On Tue, 24 Aug 2004, Elliot F. wrote: > > > I didn't have any problems with my authldap plugin under speedyCGI. > > I'll attach it, but it seems to be pretty darn similar to yours. > > Well, apart from your's being more polished :) > The point was that under SpeedyCGI the plugin did not seem to run at > all. I could see it was loaded as normal from the logs, but the hooks did > not even register which suggests that 'sub register' which is rather > trivial was not even run. However, it works fine under PPerl. I could find > no explanation for that other than SpeedyCGI was doing something wrong.
The only differences I can see with your plugin are you start it with a "#!/usr/bin/perl -Tw" which seems unusual for a plugin? Does that mean it specifically runs under perl? I don't know, Matt or Ask could shed more light on that. You also put your: use Net::LDAP qw(:all); use Qpsmtpd::Constants; inside the auth hook which means they are processed later? Hopefully someone with more than a cursory perl knowledge can shed light on any possible differences here. Cheers. -- Mark Powell - UNIX System Administrator - The University of Salford Information Services Division, Clifford Whitworth Building, Salford University, Manchester, M5 4WT, UK. Tel: +44 161 295 4837 Fax: +44 161 295 5888 www.pgp.com for PGP key