Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: perl-LDAP process hangs

by lachoy (Parson)
on Nov 03, 2002 at 16:46 UTC ( [id://210055]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://210055]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found