in reply to perl-LDAP process hangs
When I got back to my office this morning, it doesn't work. Is there something in my RH8 environment that might be knocking it out of shape? UTF-8 ?
here's what the debug=>8 out yielded...
And it just hangs right there. My current code base (just the ldap part):Net::LDAP=HASH(0x8d9c378) sending: Net::LDAP=HASH(0x8d9c378) received: 0000 12: SEQUENCE { 0002 1: INTEGER = 1 0005 7: [APPLICATION 1] { 0007 1: ENUM = 0 000A 0: STRING = '' 000C 0: STRING = '' 000E : } 000E : } Net::LDAP=HASH(0x8d9c378) sending:
use Net::LDAP; use Net::LDAP::Entry; my $ldap = Net::LDAP->new('localhost',debug=>8); my $bind_msg = $ldap->bind( dn => 'cn=Manager, dc=osprey,dc=net', password => 'secret' ); if ( my $bind_code = $bind_msg->code ) { die "Cannot bind:", $bind_msg->error, " (Code: $bind_code)"; } foreach my $username (sort keys %petra) { my $dn = "uid=${username}_osprey_net, ou=users, ispmanDomain=osprey.n +et, dc=osprey,dc=net"; my $ref = $petra{$username}; $result = $ldap->add( dn=> $dn,attr => [@$ref] ); $result->code && warn "$dn" ."failed to add entry: ", $result->error ; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
BIG UPDATE
by Notromda (Pilgrim) on Nov 04, 2002 at 15:30 UTC |