From: Graham B. <gb...@po...> - 2002-06-06 13:52:17
|
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. On Thu, Jun 06, 2002 at 06:32:34AM -0700, Murugan K G wrote: > Hi > Thanks for your comment. Basically i wanted to > create a new partition using Net::LDAP::Extension > in eDirectory > ################################################## > The requestValue has the following format: > requestValue ::= > flags INTEGER > dn LDAPDN > ##################################################### > I am getting "could not decode LDAP extension packet" > error message when i used the following encoding > procedure. Is it the rights way to encode the > message for the above mentioned extension?. I am sure > about the OID. > > Thanks in advance. > > $asn = Convert::ASN1->new; > $asn->prepare(q< > [APPLICATION 23] SEQUENCE { > flags INTEGER, > dn OCTET STRING > }>); > > $pdu = $asn->encode( flags => 0, dn => > "ou=test,o=cdac"); > > > $mesg->encode > ( > extendedReq =>{ > requestName => > '2.16.840.1.113719.1.27.100.3', > requestValue => $pdu > } > )or die "Not able to encode the extended > values\n"; > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com |