From: Murugan K G <mur...@ya...> - 2002-06-10 13:00:39
|
Hi LDAP guru, I am really happy about your reply. Before sending this query, i already tried with the following $responsename =Net::LDAP::Extension::response_name($mesg); $response=Net::LDAP::Extension::response ($mesg); But i got correct Response name but some ascii charecters ( some smiling faces like you ) for response while printing the results. Is it reqiured to convert these values to Perl data types once again using ASN1 module. Any help since i am very new to this stuff. Again, Thanks for your help . Regards K.Murugan --- Graham Barr <gb...@po...> wrote: > You do not need to decode this yourself. All you > need are the ->response > and ->response_name methods on the object returned > by $ldap->extension > > Graham. > > On Mon, Jun 10, 2002 at 05:36:59AM -0700, Murugan K > G wrote: > > Hi > > Thanks for your previous response. I have one > more > > problem while decoding the message returned from > the > > LDAP server.Is application [] tag is required > while > > decoding the response as mentioned below. Any > help? > > > > > > ##### decoding part ########### > > $asn = Convert::ASN1->new; > > $asn->prepare(q< > > [APPLICATION 24] SEQUENCE { > > responseName OCTET STRING, > > identity OCTET STRING > > } > > ); > > $out = $asn->decode($response); # which is > > #returned by send message > > print "The identity value is ". > > $out->{identity}; > > print "The response Value is". > > $out->{responseName}; > > > > Regards > > K.Murugan > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! - Official partner of 2002 FIFA World Cup > > http://fifaworldcup.yahoo.com > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application > Developer's Conference > August 25-28 in Las Vegas - > http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com |