From: Chris R. <chr...@me...> - 2002-08-08 08:53:20
|
On 7/8/02 8:59 pm, Graham Barr <gb...@po...> wrote: > ----- Forwarded message from Joshua Kahn <ka...@ma...> ----- > > Date: Wed, 07 Aug 2002 14:58:16 -0500 > To: gb...@po... > From: Joshua Kahn <ka...@ma...> > Subject: LDAP Help > > Graham- > > I am working on a simple LDAP Search for our department site, however, I > have encountered an error that I have not been able to solve. In the error > log, I get the following message: > > decode error 15 17 at /Library/Perl/Convert/ASN1/_decode.pm line 196. > > I have not been able to determine what is causing this error, any > ideas? We are using a Mac OS-9 server. It would seem to me that the > server is returning information that the decoded is not prepared for. That could be. Can you capture the exact message that the server's returning? Call $ldap->debug(2) before issuing the search. > my $dn = "humonc"; [...] > my $result = $ldap->search( > base => $dn, > scope => $scope, > filter => $filter > ); However, $dn does not contain a valid DN. Read RFC 2253 (<http://www.ietf.org/rfc/rfc2253.txt>) to find out what DNs look like. Maybe your server's sending back a badly encoded or unexpected kind of error in response to this bad search. Cheers, Chris |