|
From: Graham B. <gb...@po...> - 2003-03-26 16:19:01
|
On Wed, Mar 26, 2003 at 03:32:02PM +0000, Chris Ridd wrote:
> On 26/3/03 3:13 pm, Daniel Davidson <da...@li...> wrote:
>
> > When I remove the [$dn] and replace it with $dn then my origional problem of
> > the script hanging without an error happens again.
> >
> > I'm stumped,
> >
> > Dan
>
> Oops, to set the entry's DN just pass the DN as the first arg to add and not
> as dn => something.
>
> $ldap->add($dn,
> attrs => [ blah blah ]);
There is no difference between $ldap->ad($dn,...) and $ldap->add(dn => $dn,...)
It would be interesting to determine where it is hanging.
Try adding this to your script.
use Carp;
$SIG{USR2} = \&Carp::croak;
Then when it hangs, find the pid and in another shell do
kill -USR2 $pid
You should see a stack trace on stderr.
Although if you are on a windows box I am not sure this will work.
Graham.
|