From: Murugan K G <mur...@ya...> - 2002-06-10 11:53:11
|
--- Graham Barr <gb...@po...> wrote: > Please keep ldap communication on the ldap list > > Graham. > > On Mon, Jun 10, 2002 at 04:38:37AM -0700, Murugan K > G wrote: > > Hi > > Thanks for your help . That is working for me > now. > > I have one more problem in decoding the response > > message returned from the LDAP server. Is > > application [] tag is required while decoding the > > response as mentioned below. Regards K.Murugan > > > > ##### 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 > > > > > > > > > > --- Graham Barr <gb...@po...> wrote: > > > You dont need the APPLICATION 23 in your code, > try > > > > > > $asn = Convert::ASN1->new; > > > $asn->prepare(q< > > > flags INTEGER, > > > dn OCTET STRING > > > >); > > > > > > $pdu = $asn->encode( flags => 0, dn => > > > "ou=test,o=cdac"); > > > $ldap->extension( > > > name => '2.16.840.1.113719.1.27.100.3', > > > value => $pdu > > > ); > > > > > > Graham. > > > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! - Official partner of 2002 FIFA World Cup > > http://fifaworldcup.yahoo.com __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com |
From: Murugan K G <mur...@ya...> - 2002-06-10 12:36:59
|
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 |
From: Graham B. <gb...@po...> - 2002-06-10 12:39:31
|
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 |
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 |
From: Murugan K G <mur...@ya...> - 2002-06-10 14:47:58
|
Hi I am getting the correct response name while doing the following operation. But i am not getting the proper response value. How to decode the message to get the proper response value. I am following the step as discussed with Graham. $resname=Net::LDAP::Extension::response_name($extensionobj); $respcount=Net::LDAP::Extension::response($extensionobj); Any help ? Regards K.M __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com |
From: Chris R. <chr...@me...> - 2002-06-10 15:10:11
|
On 10/6/02 3:47 pm, Murugan K G <mur...@ya...> wrote: > Hi > I am getting the correct response name while > doing the following operation. But i am not getting > the proper response value. > > How to decode the message to get the proper response > value. I am following the step as discussed with > Graham. > > $resname=Net::LDAP::Extension::response_name($extensionobj); > $respcount=Net::LDAP::Extension::response($extensionobj); What is $extensionobj? Specifically, what class of object is it? If it is what I think it is (an instance of Net::LDAP::Extension) then you should be doing this kind of thing instead: $resname = $extensionobj->response_name(); Cheers, Chris |