From: Graham B. <gb...@po...> - 2001-12-11 18:59:18
|
On Tue, Dec 11, 2001 at 12:11:15PM -0600, le...@wr... wrote: > > > > if( my $newbase = $result->dn ) > > > > is clearer. That said, the following is definitely an issue: > > my @bindparmz = > > ( > > base => $newbase, > > password => $password, > > ); > > $bindresult = $ldh2->bind( @bindparmz); > > you should replace 'base' with 'dn' > > Looks like $result->dn returns nothing, though the > first key returned in the struct hash seems to be > a valid dn for the following query... I think you want $result->entry(0)->dn So that you get the DN of the first entry returned. Graham. |