in reply to perl-LDAP process hangs

Are you sure the bind worked properly? I typically use code like this:

my $bind_msg = $ldap->bind( $bind_dn, %bind_params ); if ( my $bind_code = $bind_msg->code ) { die "Cannot bind:", $bind_msg->error, " (Code: $bind_code)"; }

Otherwise you might try setting a value for debug in the LDAP connection object:

my $ldap = Net::LDAP->new( 'localhost', debug => 8 );

Chris
M-x auto-bs-mode

Replies are listed 'Best First'.
Re: Re: perl-LDAP process hangs
by Notromda (Pilgrim) on Nov 03, 2002 at 18:29 UTC
    As I said before, I can successfully add small amounts of data, but this big one fails - thus the bind works. I'll put the error check in for good measure though. :)

    I restarted the whole server, and now the whole thing seems to be working. Very odd. Thanks for the tip on the debug parameter, though.