Re: [GENERAL] How to make it work? (PL/Perl + Net::LDAP)

2007-07-15 Thread Stuart Cooper
PL/Perl won't let you use modules, you need to createlang plperlu (u for "untrusted") and use that. Hope this helps, Stuart. On 7/16/07, Bruno Lavoie <[EMAIL PROTECTED]> wrote: hello, simple problem, I hope I can do this working on! If i'm on a wrong place, just tell me where I can find answer

Re: [GENERAL] How to make it work? (PL/Perl + Net::LDAP)

2007-07-15 Thread Joshua D. Drake
Bruno Lavoie wrote: hello, if ($mesg == 0) { return true; } else { return false; } $body$ LANGUAGE 'plperl' VOLATILE CALLED ON NULL INPUT SECURITY INVOKER; WHY: compile without the use Net::LDAP and crash at runtime...? don't compiles with the use of Net::LDAP? You need plperlu not

[GENERAL] How to make it work? (PL/Perl + Net::LDAP)

2007-07-15 Thread Bruno Lavoie
hello, simple problem, I hope I can do this working on! If i'm on a wrong place, just tell me where I can find answers to my problem Here's my first pl/perl routine that compile very well: my $ldap = Net::LDAP->new('mydc.mycomp.com'); my $bind_uid = 'DOMAIN\\'.$_[0]; my $mesg = $ldap