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 |